Swaroop
Swaroop

Reputation: 1

Getting Ajax Error [Object : Object]

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.

This is my webservice.

Upvotes: 0

Views: 550

Answers (1)

midhun k
midhun k

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

Related Questions