jquery - Android + JQM+ jsonp not working consistently -


I'm working randomly using JQ + Phonegap on the Hybrid Android app, I request a JSONP with AJAX

It works well on all Chrome PC browsers, even when connected to WiFi, my Android works well on the app, but when changing the network connection for 3G, AJX Not responding to the request.

I got the related posts @BruceHill, writes the following: "Mobile operators make modifications before distributing the phone and this modification breaks jQuery"

However, in Holland I I'm not living, I tried to do all those efforts which they call JS files through a remote server and it is called through the CDN, but unfortunately it does not help.

I would be happy to get some help on this ...

This is my AJAX request: $ Mobile.allowCrossDomainPages = True; $ ('# ExpertsListPage') Live ('pageview', function (event) {$ .mobile.showPageLoadingMsg (); getExpertsList ();}); Var catid; Var catName function getExpertsList () {$ ('# expert list took'). Remove (); CatId = getUrlVars () ["id"]; CatName = getUrlVars () ["Cat"]; $ ('H1'). Text (unascape (catam)); Var url = 'http://apis.mydomain.com/mydata.svc/jsonp' $. Axx ({cache: true, type: 'gET', url: url, datatype: 'jesnpie', jesnp: 'callback', success: api_do}); } Var experts; Function API_O (OBJ) {$ ('# Expert List Lea'). Remove (); Experts = obj.experts; $ .eE (Expert, Function (Index, Expert) {$ ('# Expert List'). Endend ('

  • ' + '

    * + expert $ '(' # ExpertsList ') List view (' '' '' '' '' '& lt; / l & gt; & lt; / li & gt;'; ); $ .mobile.hidePageLoadingMsg ();} getUrlVars () {var varsExperts = [], hash; var hashes = window.location.href.slice (window.location.href.indexOf ('?') + 1) For .split ('& amp;'); A (var i = 0; i & lt; hashes.length; i ++) {hash = hash [i] .split ('='); varsExperts.push (hash [0]); VarsExperts [hash [0] ] = Hash [1];} Returns Versailles;}

    Try adding in, this can help.

      $ (document) .on ("mobileinit", function () {// Make your jQuery framework configuration changes here! $ .support.cors = true; $ .mobile.allowCrossDomainPages = True;});    

  • Comments