Results 1 to 2 of 2

Thread: open the dhtml window from inside a frame

  1. #1
    Join Date
    Aug 2011
    Posts
    27
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default open the dhtml window from inside a frame

    1) Script Title: DHTML Window widget

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/index.htm

    3) Describe problem: Stuck trying to open the dhtmlwindow from a page inside an iframe, so that the page loads outside the iframe.

    I have an index.php with a iframe which loads a page2.html. On page2.html i have a dhtmlwindow.open link.. But when i open the link the dhtmlwindow it opens inside the iframe, and i am struggling to open it outside the iframe, so that it can drag over the entire index.php page..

    I have the script and css included on both pages IE: my index.php and the Page2.html. I would like to use this FIX. For both the iframe and div version of the dhtmlwindow.open

    Best regards
    Antony

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,839
    Thanks
    49
    Thanked 247 Times in 239 Posts
    Blog Entries
    56

    Default

    The normal way to activate something outside the iframe is putting parent. before your javascript. In this case, you would do something like:
    uniquevar=parent.dhtmlwindow.open(uniqueID, contenttype, contentsource, title, attributes, [recalonload])
    I haven't tested it.
    Arie Molendijk.

  3. The Following User Says Thank You to molendijk For This Useful Post:

    antonyf (11-23-2011)

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
  •