I am racking my head over these issue for 2 days..
My server scripts caters for both POST and GET with authentication. Both produces correct json responses with Poster (firefox plugin) but
on the iphone, only the POST method is working and the GET method return NULL…
I check and check and couldn't find what I did wrong…
I saw some people use xhr.onload = function() instead of xhr.onreadystatechange = function()
I tried both and still can't get results from GET…
Found the answer: