PDA

View Full Version : DHTML Window widget question



Roz
03-07-2008, 01:34 AM
1) DHTML Window widget (v1.1)

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

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


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.

Nile
03-07-2008, 02:09 AM
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;

ddadmin
03-07-2008, 07:08 AM
That wouldn't work unfortunately either Nile.

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


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.