cyberd
04-04-2008, 06:50 AM
Hi,
I am using ASP ... and i am making a small application with windows like a virtual desktop into web... at least i am trying to do it...
I had one problem using dhtmlwindow because i have many windows...
I want to close the current window (dhtmlwindow)..
I am doing with this command perfectly on a submit button or a simple button
onclick=parent.myxwindow.close();
but as i said i have many windows that created through html generation from asp code... so it is difficult to know the current name of window - or must use sessions and querysting and blah blah.. it's kind a difficult...
1. is any code to know the current name of dhtmlwindow ?
i am using dhtmlwindow with iframe and i am opening the new window on the fly like this:
<a href="#" onclick="myxwindow=dhtmlwindow.open('myxwindow', 'iframe', 'test.asp?run=new&option=1', 'My title of X window', 'width=750px,height=490px,resize=0,scrolling=1,center=1', 'recal');">New X Window</a>
2. i want to use the current name of window to load at iframe different asp page...
Thanks in advance...
I am using ASP ... and i am making a small application with windows like a virtual desktop into web... at least i am trying to do it...
I had one problem using dhtmlwindow because i have many windows...
I want to close the current window (dhtmlwindow)..
I am doing with this command perfectly on a submit button or a simple button
onclick=parent.myxwindow.close();
but as i said i have many windows that created through html generation from asp code... so it is difficult to know the current name of window - or must use sessions and querysting and blah blah.. it's kind a difficult...
1. is any code to know the current name of dhtmlwindow ?
i am using dhtmlwindow with iframe and i am opening the new window on the fly like this:
<a href="#" onclick="myxwindow=dhtmlwindow.open('myxwindow', 'iframe', 'test.asp?run=new&option=1', 'My title of X window', 'width=750px,height=490px,resize=0,scrolling=1,center=1', 'recal');">New X Window</a>
2. i want to use the current name of window to load at iframe different asp page...
Thanks in advance...