I am calling a 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 do not get output in chrome and mozolla.
thanks for the help.
source share