ajax request in jquery mobile -
is possible use jquery ajax jquery mobile?
$.ajax({ url:'/php', type:'get', datatype:'json', data:{'action':'getdata'}, success: function(result) { alert(result); },error:function(err){alert(err);} });
this code failing on button click of jquery mobile(data-role=button) problem here? if run request in new tab works fine , can response.
test that:
$.ajax({ url:'/php', type:'get', datatype:'json', data:{action:'getdata'} success: function(result) { alert(result); }, error:function(err){alert(err);} });
Comments
Post a Comment