Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I get the source from a frame containing an external page

    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

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,950
    Thanks
    0
    Thanked 236 Times in 233 Posts
    For security reasons, you don't have access to the window/frame that contains page in another domain.

  • #3
    New to the CF scene
    Join Date
    Jul 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I was afraid that would be the answer. Thanks for the help


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •