1

How to load specific data from an other website (other domain) with ajax?
For example text within a specific <div>.

Note: The .load() function in jQuery does not help.

4
  • If you're using jquery try james.padolsey.com/javascript/cross-domain-requests-with-jquery it should do what you want. Commented Dec 31, 2011 at 19:34
  • cross domain requests are not allowed via ajax Commented Dec 31, 2011 at 19:36
  • could this be maked through iframe Commented Dec 31, 2011 at 19:38
  • emaillenin cross domain requests are allowed Commented Dec 31, 2011 at 19:49

1 Answer 1

2

You can do this by using a proxy on your own domain that request external html or json content and servers this for you.

See an example for this here: JSON Proxy in Java / Play! Framework

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.