Click to See Complete Forum and Search --> : reading content of other html document


hugo
07-17-2003, 11:54 AM
hello,

i want to access via javascript the content of another html-page (just the url is known) and pass it to a js-variable. I don't want the other page beeing shown in a browser window.

...something like:
var newContent = otherUrl....document.form...

is this possible?

thanks,
david.

Khalid Ali
07-17-2003, 12:29 PM
it won't be possible using javascript if the other page is an out of domain page.
If it isn't then you may need to open that pae in a frame or a child window and then get the contents from there...

HackerX
07-17-2003, 01:25 PM
use an IFrame like:

<table width="70%" border="1" align="center">
<tr>
<td><iframe src="Document URL Here" name="middle" width="100%" height="480"></iframe></td>
</tr>
</table>