i am calling web-service using this code:
function CallService() {
$.ajax({
type: "GET",
url: "http://devpc4:5566/Service1.asmx/GetItems",
dataType: "json",
data: "{}",
contentType: "application/json; charset=utf-8",
success: OnSuccess,
error: OnError
});
}
OnSuccess function:
function OnSuccess(data, status) {
alert("success");
alert(data.d);
alert("success1");
var ponse = '{"TableNo":"2"}';
alert(ponse.TableNo);
}
OnError:
function OnError(request, status, error) {
alert(status);
}
it gives me output in IE but i am not getting output in chrome and mozolla.
thanx for your help.