Hi, I am using the following script ot popup a window:
<script>
// JavaScript Document
function PopDetails(WinName,theWidth,theHeight,theURL){
xpos = Math.round((screen.width/2)-(theWidth/2)-13);
ypos = Math.round((screen.height/2)-(theHeight/2));
WinName = window.open(theURL,'WinName', 'width='+theWidth+',height='+theHeight+'location=no,menubar=no,personalbar=no,resizable=no,screenX=' + xpos + ',screenY=' + ypos + ',left=' + xpos + ',top=' + ypos + ',locationbar=no,scrollbars=no,directories=no,statusbar=no,toolbar=no');
WinName.focus();
}
</script>
In the script, the dimentions etc are passed to the function. It works very nicely.
This is ideal for opening content into one window. But, I need it to work with lots. Therefore I need to pass the name of the window - which I'm doing, but the attribute is not be evaluated. Its just calling every window the same thing.
I have trioed modifying to:
[WinName] = window.open(...
and
eval(WinName) = window.open(...
But no joy. Please enlighten...
M@)
<script>
// JavaScript Document
function PopDetails(WinName,theWidth,theHeight,theURL){
xpos = Math.round((screen.width/2)-(theWidth/2)-13);
ypos = Math.round((screen.height/2)-(theHeight/2));
WinName = window.open(theURL,'WinName', 'width='+theWidth+',height='+theHeight+'location=no,menubar=no,personalbar=no,resizable=no,screenX=' + xpos + ',screenY=' + ypos + ',left=' + xpos + ',top=' + ypos + ',locationbar=no,scrollbars=no,directories=no,statusbar=no,toolbar=no');
WinName.focus();
}
</script>
In the script, the dimentions etc are passed to the function. It works very nicely.
This is ideal for opening content into one window. But, I need it to work with lots. Therefore I need to pass the name of the window - which I'm doing, but the attribute is not be evaluated. Its just calling every window the same thing.
I have trioed modifying to:
[WinName] = window.open(...
and
eval(WinName) = window.open(...
But no joy. Please enlighten...
M@)