Loans - Farm - Free Advertising - Pacotes Porto Seguro - Mobile Phones

PDA

View Full Version : Javascript Question


Help Desk
Jul 9th 2004, 8:35 am
Is there a way to get javascript to display the contents of another page in the same window?

Help Desk
Jul 9th 2004, 9:38 am
Let me answer my own question...

Yes if you don't mind those contents being shown in an iframe.

Will.Spencer
Jul 9th 2004, 9:59 am
Mmm... please post your solution.

I have the same question, except with PHP instead of JavaScript. :)

l0cke
Jul 9th 2004, 2:05 pm
Mmm... please post your solution.

I have the same question, except with PHP instead of JavaScript. :)
You can easily read files/url's with PHP - there should be many examples at hotscripts.com. JavaScript only allows reading of files via ActiveX which requires the client to have Windows Scripting Host installed. Also the only way for JavaScript to read url's is if the client has the Microsoft XML DOM installed.

schlottke
Jul 9th 2004, 2:20 pm
php.resourceindex.com
hotscripts.com

both should help you find what you are looking for.

Help Desk
Jul 12th 2004, 6:38 am
Mmm... please post your solution...
The only solution was to have use an inline frame to show the target HTML page. It's what Google does with their Ad Sense Ads so it should be good enough.