Dave's Brain

Browse - programming tips - how to execute content from another domain

Date: 2010may26
Language: javaScript

Q.  A restriction of JSON is that you can only call back to the originating domain.
Is there a way around this?

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.

More info:
http://en.wikipedia.org/wiki/JSON#JSONP
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2012, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Advertisements: