By arendjr
Monday, 26. October 2009, 11:28:38
JSONP calls in Opera Mini
Hi all,I'm testing the mobile website for our company in Opera Mini, and have run into a problem with JSONP requests.
The problem is that when I want to perform a search on the site, I do a JSONP request to fetch the search results, but Opera Mini renders the site in a state as if the search results have not yet arrived. It looks as though the Opera server does not detect there is a JSONP request going on, and just returns the rendered page to the client, before waiting the actual response containing the search results.
Note that I cannot use XmlHttpRequest, since the request is cross-domain and would raise a security violation. So I don't know whether using XmlHttpRequest would solve the issue of the server not waiting for the response.
Does somebody know some trick I can use to force the server to wait for the result of the JSONP request, or does anybody have hints on other things that could be going wrong? The functionality works fine in the Opera desktop browser.
Thanks in advance!
Arend van Beelen, Hyves