i have a problem
hi i can not useing web method on plesk hosting? How do I solve the problem?
I want use at down ajax function.
var data={str:'test'};
$.ajax({
type: "POST",
url: "Ventura.aspx/GetTest",
dataType: "json",
contentType: "application/json; charset=utf-8",
data: JSON.stringify(data),
success: function (result) {
alert(result);
},
error: function (result) {
hata=result;
}
});
the function is running on the local host.
It looks like you haven’t configured your website properly, or you’re trying to use incorrect URL, so the control passed to the main page of the website of instead of your script.
You should ask for help from a qualified web-developer. Maybe you could find someone to help you on http://forum.odin.com.
Sorry, but we are closing this item because it is not a feature request.
— ES
-
Anonymous commented
full URL 'http://avcilardh.saglik.gov.tr/Ventura.aspx/GetTest',
script is returning json object on the local host, but this script is returning main page on the server.