View Full Version : JSONP is not working with url localhost

21 Oct 2010, 2:43 PM

I wonder why jsonp is not working properly with the url that contains "localhost" ? I requested the json data from the server using "localhost", the json data are returned but in the wrong way. But when using the "http:www", everything works perfectly. Any idea?

Many thanks

21 Oct 2010, 3:03 PM
What are you returning in the script tag?

Is the response legitimate? is it wrapped in the callback?

21 Oct 2010, 5:20 PM
The returned json was not wrapped in the callback. it was just a raw json like {"":'''}. So what could be the problem.Thanks.