Call And Post Value Webservice With Jquery Mobile Or Phonegap
i desing my page with jquerymobile and i do native app for android with phonegap. it is working but in my page i have form and i have to get some value and after that i will send v
Solution 1:
$.ajax({
url: PublishUrl,
type: 'POST',
data: JSON.stringify(postData),
contentType: "application/json;charset=utf-8",
success: function(result) {
},
error: function(x, y, z) {
alert(x.responseText +" "+ x.status);
}
});
postData = data in json format PublishUrl = url where you need to call the service
This same can be used to post and call too, you can change type to "GET" and loop through in your success block
Post a Comment for "Call And Post Value Webservice With Jquery Mobile Or Phonegap"