How do I know if a server has JSONP turned on? It is not my server, but I try to access some information from the rendered html.
Thanks in advance.
For most servers, you can make a request in your browser to whatever JSON page/service they have and just add a callback function in the URL, for example if it's this:
http://example.com/getJson?var=something
Add the callback query parameter, like this:
http://example.com/getJson?var=something&callback=myFunction
The response instead of this (it will look like this if it doesn't support JSONP):
{ "thing": "value" .... }
Should look like this (again, if it supports JSONP):
myFunction({ "thing": "value" .... });