Ajax Navigation in Windows Phone 8
-
Hi All, I am working on cross platform applications using Jquery Mobile (1.3.1), Jquery (1.9.1) and Phonegap (2.8.0). The application works fine on Android, iOS and Blackberry platforms. But, on the Windows platform the ajax transitions do not seem to work. Since the AJAX not loads I am unable to load the control label values from the json file. Kindly share your input if you used this. Also Windows mobile by default triggers only the failure event in $.ajax method, its not even recognizing the .done or success function. I have set globally $.support.cors to true, $.mobile.allowCrossDomainPages to true and I tried all version Jquery Mobile and Phonegap libraries but no luck . Kindly share your thoughts on this which will be very helpful for my project. Thanks, Santhosh
-
Hi All, I am working on cross platform applications using Jquery Mobile (1.3.1), Jquery (1.9.1) and Phonegap (2.8.0). The application works fine on Android, iOS and Blackberry platforms. But, on the Windows platform the ajax transitions do not seem to work. Since the AJAX not loads I am unable to load the control label values from the json file. Kindly share your input if you used this. Also Windows mobile by default triggers only the failure event in $.ajax method, its not even recognizing the .done or success function. I have set globally $.support.cors to true, $.mobile.allowCrossDomainPages to true and I tried all version Jquery Mobile and Phonegap libraries but no luck . Kindly share your thoughts on this which will be very helpful for my project. Thanks, Santhosh
Hi , Try Using Normal JAVASCRIPT: var ajax = new XMLHttpRequest(); var seconds = new Date().getTime(); // avoid cache problem var additionalParam = "" // if any var URL = "http://www.domainname.com/api/method/"; // your URL var authURL = URL+ additionalParam+'&tmp=' + seconds; ajax.open("GET", authURL + '', false); ajax.send(); if (ajax.readyState == 4 && (ajax.status == 200)) { console.log("ajax.responseText" + ajax.responseText); } Thanks.