Results 1 to 3 of 3

Thread: DHTML Window resize

  1. #1
    Join Date
    Dec 2006
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Window resize

    1) Script Title:
    DHTML Window widget (v1.03)

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

    3) Describe problem:
    I have the DHTML Window widget working well and opening up with iframe content. However what I wish is for a link within the iframe to be able to resize the open window.

  2. #2
    Join Date
    Dec 2006
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sussed it!!!

    It comes down to giving the link to resize and change the window the same iframe name as the original:

    ie if you had:
    dhtmlwindow.open('myfirstwindow', 'iframe', 'www.someurl.html', 'A fancy title', 'width=770px,height=480px,resize=0,scrolling=0,center=1', 'recal')
    the link to keep the same window but resize it would be:
    parent.dhtmlwindow.open('myfirstwindow', 'iframe', 'www.somedifferenturl.html', 'A different fancy title', 'width=500px,height=200px,resize=0,scrolling=0,center=1', 'recal')
    Seems so simple when you see how

    To see it in action have a look at:
    http://www.metadigm.co.uk/partners/checkpoint/index.php

    In the "Resources" box click on "view online demonstrations" and then pick one of the three

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Yep, thanks for sharing how you resolved it. In general you navigate back to the parent window in JavaScript using "parent.".

    George

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
  •