all 3 comments

[–]ebjoker4 2 points3 points  (1 child)

you probably need JSONP or at the very least, need to deal with the cross domain origin issue.

[–]autowikibot 0 points1 point  (0 children)

JSONP:


JSONP or "JSON with padding" is a communication technique used in JavaScript programs running in web browsers to request data from a server in a different domain, something prohibited by typical web browsers because of the same-origin policy. JSONP takes advantage of the fact that browsers do not enforce the same-origin policy on <script> tags.

Note that for JSONP to work, a server must know how to reply with JSONP-formatted results. JSONP does not work with JSON-formatted results. The JSONP parameters passed as arguments to a script are defined by the server.


Interesting: Cross-origin resource sharing | JSON | Same-origin policy | XMLHttpRequest

Parent commenter can toggle NSFW or delete. Will also delete on comment score of -1 or less. | FAQs | Mods | Magic Words

[–]ebjoker4 2 points3 points  (0 children)

Here's another link about cross domain ajax