...

View Full Version : How do I get the source from a frame containing an external page



carbootsale
07-12-2004, 08:25 AM
Hiya

I am trying to get the source of an external page I have loaded in a frame. I am trying to use

parent.frames[0].document.body.innerHTML

which works fine when I load another page from my site but fails when I load a page external from my site. (For testing I am just displaying the result in an alert and for the external page nothing popups so I expect an error)

Is there something I am doing wrong or is there a better way to get the HTML source for the page?

Cheers
Tony

glenngv
07-12-2004, 09:05 AM
For security reasons, you don't have access to the window/frame that contains page in another domain.

carbootsale
07-13-2004, 01:05 AM
I was afraid that would be the answer. Thanks for the help



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum