Programming Tips - javaScript: With AJAX you can only call back to the originating domain. Here is a way around that.
Date: 2010may26
Update: 2025jul14
Language: javaScript
Platform: web
Q. javaScript: With AJAX you can only call back to the originating domain. Here is a way around that.
A. This rule does not apply to <script> so you can inject
<script> tags into your DOM and return JSON. This exception
maybe be restricted in the future.
Its supposed to be used for scripts but you can used it for data.
Be careful.
More info:
http://en.wikipedia.org/wiki/JSON#JSONP