jquery - Cordova: $.Ajax function is ignored -


i'm working on app works great legacy hybrid build in intel xdk. i'm trying build in cordova 3.5 intel xdk ajax functions ignored. no error, no success...

this strange because works great in emulator on actual device functions ignored.

this pretty logic use:

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" />     <link rel="stylesheet" href="mobile/1.4.4/jquery.mobile-1.4.4.min.css" />     <script type="text/javascript" charset="utf-8" src="js/jquery-2.1.1.min.js"></script>     <script type="text/javascript" charset="utf-8" src="mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>      <script src='cordova.js'></script>      <script src="intelxdk.js"></script>     <script src="xhr.js"></script> 

and ajax function:

$.ajax({             type: 'get',             //url: 'http://localhost:60875/test.asmx/logonuser',             url: window.ajaxserver + 'logonuser',                 cache: 'true',             data: {                 'username':get_cookie('username'),                 'password':get_cookie('password'),                 'environment':get_cookie('environment')             },             datatype: 'jsonp',             beforesend: function(){$.mobile.loading('show','a');},              error: function(){                 $.mobile.loading('hide','a');                 self.loginuser_cb(jsonstr);             },              success: function(jsonstr){                 $.mobile.loading('hide','a');                 self.loginuser_cb(jsonstr);             }         }); 

as said, works in legacy hybrid native build, not in cordova. appreciate advice, cheers!


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -