Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
37
rated 0 times [  39] [ 2]  / answers: 1 / hits: 18133  / 15 Years ago, thu, august 20, 2009, 12:00:00

I have a URL of a remote page from a different domain which I have to download, parse, and update DOM of the current page. I've found examples of doing this using new ActiveXObject(Msxml2.XMLHTTP), but that's limited to IE, I guess, and using new java.net.URL, but I don't want to use Java. Are there any alternatives?


More From » get

 Answers
9

Same domain policy is going to get you.



1) Proxy through your server. browser->your server->their server->your server->browser.



2) Use flash or silverlight. The 3rd party has to give you access. The bridge between javascript and flash isn't great for large amounts of data and there are bugs. Silverlight isn't ubiquitous like flash...



3) use a tag. This really isn't safe... Only works if 3rd party content is valid javascript.


[#98870] Monday, August 17, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gabriellagiselc

Total Points: 654
Total Questions: 99
Total Answers: 106

Location: Burkina Faso
Member since Thu, Dec 23, 2021
2 Years ago
;