Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by alex on Jul 14, 2009 02:57
open dhtmlx forum
Re:dhtmlx windows new issues urgent help required

Thanks Alex for answer but still 3rd aspx is opening in second window.

 

Heres code i have written.

1.aspx

var dhxNotesAndMarkersListWin;

dhxNotesAndMarkersListWin = new dhtmlXWindows();

var winNML = dhxNotesAndMarkersListWin.createWindow('NML', 0, 0, 450, 100);

dhxNotesAndMarkersListWin.setSkin("dhx_blue");

winNML.setText("Notes And Markers List");

dhxNotesAndMarkersListWin.window('NML').attachURL("1.aspx");

dhxNotesAndMarkersListWin.window('NML').setModal(true);

dhxNotesAndMarkersListWin.window('NML').denyResize(false);

dhxNotesAndMarkersListWin.window('NML').denyPark(false);

dhxNotesAndMarkersListWin.window('NML').center();

2.aspx

parent.dhxNotesAndMarkersListWin = new dhtmlXWindows();

//var newwindow2 = parent.dhxWins.createWindow(...);

var winNMView = parent.dhxNotesAndMarkersListWin.createWindow('NMVW', 0, 0, 489, 394);

parent.dhxNotesAndMarkersListWin.setSkin("dhx_blue");

winNMView.setText("Notes And Markers");

parent.dhxNotesAndMarkersListWin.window('NMVW').attachURL("2.aspx");

parent.dhxNotesAndMarkersListWin.window('NMVW').setModal(true);

parent.dhxNotesAndMarkersListWin.window('NMVW').denyResize(false);

parent.dhxNotesAndMarkersListWin.window('NMVW').denyPark(false);

parent.dhxNotesAndMarkersListWin.window('NMVW').center();

 

I want 1.aspx opened and 2.aspx in new window .Please help

Answer posted by Alex (support) on Jul 14, 2009 03:43

Hello,

 accoding to your code the 2.aspx should create window as follows:

//parent.dhxNotesAndMarkersListWin = new dhtmlXWindows(); /*should be removed*/

var winNMView = parent.dhxNotesAndMarkersListWin.createWindow('NMVW', 0, 0, 489, 394);

winNMView.setText("Notes And Markers");

...