PDA

View Full Version : popup window on popup window


ksridhar69
10-09-2002, 03:49 PM
i am calling this function on popup window (button onClick). I want to generate popup window on popup window. But it is opening on same window. How to generate window on window

function edittherow(sub)
{

if ((trim(document.remitform.d[sub].value) != "")&&(trim(document.remitform.f[sub].value) != ""))
{
if (confirm("Edit This Row"))
{
sealWin=window.open("editplvltworemitrow.asp",'height=125 width=620,toolbar=no,menubar=no,scrollbar=yes,status=yes,resizable=yes,location=no,right=100,top=100 ');
self.name = "mainWin";
return false;
}
}
}

ShriekForth
10-09-2002, 03:54 PM
If you are using the same script in both, the window name will be the same, so the second window will target itself. The script in the second window needs to reference a new window.

sealWin2=window.open("editplvltworemitrow.asp",'height=125 width=620,toolbar=no,menubar=no,scrollbar=yes,stat
us=yes,resizable=yes,location=no,right=100,top=100
');
self.name = "mainWin2";
return false;

Or a better name if another is more descriptive.

ShriekForth

ksridhar69
10-09-2002, 03:54 PM
i got it put "ConsoleWindow" instead of newwindow

ksridhar69
10-09-2002, 03:55 PM
i used this code. It is working

function edittherow(sub)
{

if ((trim(document.remitform.d[sub].value) != "")&&(trim(document.remitform.f[sub].value) != ""))
{
if (confirm("Edit This Row"))
{
sealWin=window.open("editplvltworemitrow.asp",'ConsoleWindow','height=125 width=620,toolbar=no,menubar=no,scrollbar=yes,status=yes,resizable=yes,location=no,right=100,top=100 ');
self.name = "mainWin";
return false;
}
}
}