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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -