SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Iframes

  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Location
    Israel
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Iframes

    Hello,
    I'm having a problem when I try to use javascript on the content of an iframe.
    The problem is that the iframe isn't on my site or even on my server so using contentDocument or contentWindow will be denied. Is there some sort of a work around that I can use for this?

    Many thanks,
    Kfir

  2. #2
    SitePoint Zealot Ken Sharpe's Avatar
    Join Date
    Apr 2008
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, the javascript security model prevents this, and rightly so. You can possibly use server side code to grab the contents of an external page and output them locally, which you could then manipulate.


Bookmarks

Posting Permissions

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