JSONP Issue ?

JSONP Issue ?

jack17jack17 Posts: 2Questions: 1Answers: 0

Hello,
I was able to use the same JSON ajax source locally, but due to server restrictions, once I refer to a JSONP source (for cross-site ability), it complains that it's invalid json. However, jsonlint confirms that it is valid JSON.
In addition, I even nested the data inside a data object in an attempt to make it work, however, would prefer not to have it nested.

The following is what I've tried:
https://gist.github.com/anonymous/538f7935764d70f7a7bd

Perhaps I'm missing something pretty obvious, but I haven't found anything in the forums.

thanks a bunch in advance,
Jack

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,505Questions: 1Answers: 10,471 Site admin
    Answer ✓

    It might be valid JSON, but is it valid JSONP? JSONP isn't JSON, but rather Javascript - it executes a function with a JSON object in it.

    Allan

This discussion has been closed.