Reputation: 1
I have to access my WebService to search data, but it gives me an error :
error[object:object]
I have run my webservice and it workedI don't know why I can't access it through ajax.
Upvotes: 0
Views: 550
Reputation: 1068
alert() prints the string representation of the arguments - hence if you pass an object, you'll get [object Object].
To inspect data, use console.log(data) better.
Upvotes: 1