invalid label from jsonp response data
while getting response from rest webservice call ,am getting the following scripting error
Timestamp: 08/06/2012 06:16:58 PM
Error: SyntaxError: invalid label
Source File: http://localhost:9000/customerservice/getDet?callback=?&_=1344257218195
Line: 1, Column: 1
Source Code:
{"sage":100,"sname":"lenin"}
last line represents jsonp data from the server.
for your reference my ajax call is
$.ajax({
dataType: 'jsonp',
type: "GET",
url: "http://10.163.14.56:9000/customerservice/getDet?callback=?",
cache: false,
jsonp : false,
success: function (data) {
alert("Success");
// what i have to do here
}
});
thanks in advance
appreciate for any help.