I'm developing mobile website.Actual server is in php.So i've used web services for that.I'm using jquery mobile with full of html files.The problem is i need to call the WSDL method via ajax in my jquery mobile application and get the value from server which are the php files.If i run the html file its executing success part with the error "{"location":null}".Kinldy help me to do this
origin.html
Submit a form via AJAXfunction onSuccess(data, status)
{
data = $.trim(data);
$("#notification").text(data);
}
function onError(data, status)
{
alert(JSON.stringify(data));
data = $.trim(data);
$("#notification").text(data);
// handle an error
}
$(document).ready(function() {
$("#submit").click(function(){
var formData = $("#callAjaxForm").serialize();
$.ajax({
type: "POST",
url: "http://demo.XXXXX.org/test.wsdl",
cache: false,
data: formData,
success: onSuccess,
error: onError
});
return false;
});
});
TEST MOBILE
User Name
Password
Submit
TEST.net
Alert!
I'm alert page!