Sunday 18 November 2012

iPhone simulator for windows

Hello every one,


To day i will share you how to install iPhone simulator on windows  in two steps.


This is for web site developers who want to test web sites and  make phone calls from laptop using iPhone simulator on windows.
 
Step1: Download and install Adobe air from http://get.adobe.com/air/ 

Step2: Download and install AIR Phone from http://www.merhl.com/?page_id=3

That's it, You installed iPhone on your windows.

Note:- Actually this is not original iPhone simulator developed by Apple but this was developed with the help of  Adobe air application. Original iPhone simulator runs in only intel OS X machine.
This is like an iPhone simulator with few functionalities, But the thing is working functionalities are accurate according to my knowledge i.e
1. Browser is stand alone (safari).
2. Phone call app is also stand alone.

Thank you.

Wednesday 10 October 2012

Handling flash player on multiple divisions

Hello all,

If you got a situation to handling flash player on multiple div on same page, Then i have a better idea to handle the situation.
i.e.
Don't hide the div's containing player. if you hide the div except in fire-fox, all other browser's removes the player from the page and whenever you shows div player is again downloaded from the server.
Instead of hiding div move div to off screen.        

Handling json data on ajax

Hi all,

Whenever you send json data on ajax you should use encodeURIComponent() method to encode json data other wise special chars in json data like '&,?' may disturbs the url data posting to the server.
i.e
$.ajax({

url: 'ajax/test-page.php',
data: 'usr_data='+encodeURIComponent(frmdata)

});