Hi,
I've recently deployed my first web service with jquery. In the .js file I make reference to the web service like this:
var testEmailStatus = function (emailAddress, selfTest, result) {
$.ajax({
type: "POST",
url: "Web_Services/UpdateEmailStatus.asmx/UpdateStatus",
data: JSON.stringify({ emailAddress: emailAddress, selfTest: selfTest }),
contentType: "application/json; charset=utf-8",
dataType: "json",
async: true,
success: result
});
}
All's good but the url is relative to my domain. I operate a static domain so all my scripts images etc are called from
http://static.mydomain.co.uk/web_services...
I changed the url to point to my static domain but the service stopped working. After investigating in firebug I noticed that the POST had become OPTION, but thats as much as I know.
Being ...
Go to the complete details ...