Results 1 to 3 of 3

Thread: DHTML Window widget question

  1. #1
    Join Date
    Mar 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Window widget question

    1) DHTML Window widget (v1.1)

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

    3) Describe problem:
    How to show 2, 3 or more windows in same time?
    I`m doing

    Code:
             var divwin=dhtmlwindow.open('divbox', 'div', 'temp_wiki', 'Wika', 'width=450px,height=300px,left=200px,top=150px,resize=1,scrolling=1'); return false;
             var divwin2=dhtmlwindow.open2('divbox2', 'div', 'temp_wiki', 'Wika', 'width=450px,height=300px,left=200px,top=150px,resize=1,scrolling=1'); return false;
    But it`s not working.
    Help please.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Code:
             var divwin=dhtmlwindow.open('divbox', 'div', 'temp_wiki', 'Wika', 'width=450px,height=300px,left=200px,top=150px,resize=1,scrolling=1'); return false;
             var divwin=dhtmlwindow.open2('divbox2', 'div', 'temp_wiki', 'Wika', 'width=450px,height=300px,left=200px,top=150px,resize=1,scrolling=1'); return false;
    Jeremy | jfein.net

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

    Default

    That wouldn't work unfortunately either Nile.

    Roz, from what I can tell, the two errors in your code are highlighted in red:

    Code:
    var divwin=dhtmlwindow.open('divbox', 'div', 'temp_wiki', 'Wika', 'width=450px,height=300px,left=200px,top=150px,resize=1,scrolling=1'); return false;
    var divwin2=dhtmlwindow.open2('divbox2', 'div', 'temp_wiki', 'Wika', 'width=450px,height=300px,left=200px,top=150px,resize=1,scrolling=1'); return false;
    open2 should be changed to open. Then there's the temp_wiki parameter. It should be unique for each DHTML instance as well, so try changing "temp_wiki" to "temp_wiki2" instead, and make sure a DIV with that ID value is added to the page.

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
  •