...

View Full Version : Loading HTML from another page



Cody_
11-06-2012, 06:39 AM
I know I can use PhP and use cURL to grab the contents of another webpage, but I want to be able to do it non-server side

Is there a way to send a request to say "http://www.website.com/test.php?id=1", then grab the contents and put it on the current web page without using cURL and being able to do it non-server side?



I can further explain if needed, but this was the best I could figure.


Thanks in advance,

Cody

Philip M
11-06-2012, 08:19 AM
I know I can use PhP and use cURL to grab the contents of another webpage, but I want to be able to do it non-server side

Is there a way to send a request to say "http://www.website.com/test.php?id=1", then grab the contents and put it on the current web page without using cURL and being able to do it non-server side?



I can further explain if needed, but this was the best I could figure.


Thanks in advance,

Cody

In a word, no. JavaScript automatically prevents scripts on one server from accessing properties of documents on a different server. The Same Origin Policy states that JavaScript code running on a web page may not interact with any resource not originating from the same web site.

Quizmaster: How many players are there in a septet?
Contestant: Well, September is the ninth month so it might be nine. I'll go for five.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum