canadianjameson
05-31-2004, 08:10 PM
when i try to use the same script twice on a page (renamed appropriately i assume), i get the oddest thing happening. the width & height variables in the first instance of the script (directly below) dont get read... or they get overwritten. in any case... the window opens full screen.
the only way i can get around this is to open a link in the second script using <a href="javascript:newWinPDF('url'), keep that open, and THEN for some reason the other script works properly...
any ideas why this may be
i think you may be able to see it at www.enviromark.ca/sitetest/english/products.html --> Greyline --> Stingray
<script type=text/javascript>
function newWin(urlLoc) {
_winName = "popupSelect";
_info = "toolbar=no"; // yes|no
_info += ",location=no"; // yes|no
_info += ",directories=no";// yes|no
_info += ",status=no"; // yes|no
_info += ",menubar=no"; // yes|no
_info += ",scrollbars=no";// yes|no
_info += ",resizable=yes"; // yes|no
_info += ",dependent"; // close the parent, close the popup, omit if you want otherwise
_info += ",height=250";
_info += ",width=425";
_info += ",left=465";
_info += ",top=100";
DispWin=window.open(urlLoc,_winName,_info);
}
</script>
<script type=text/javascript>
function newWinPDF(urlLoc) {
_winName = "MyNewWindow1";
_info = "toolbar=yes"; // yes|no
_info += ",location=no"; // yes|no
_info += ",directories=no";// yes|no
_info += ",status=no"; // yes|no
_info += ",menubar=no"; // yes|no
_info += ",scrollbars=yes";// yes|no
_info += ",resizable=yes"; // yes|no
_info += ",dependent"; // close the parent, close the popup, omit if you want otherwise
DispWin=window.open(urlLoc,_winName,_info);
}
</script>
the only way i can get around this is to open a link in the second script using <a href="javascript:newWinPDF('url'), keep that open, and THEN for some reason the other script works properly...
any ideas why this may be
i think you may be able to see it at www.enviromark.ca/sitetest/english/products.html --> Greyline --> Stingray
<script type=text/javascript>
function newWin(urlLoc) {
_winName = "popupSelect";
_info = "toolbar=no"; // yes|no
_info += ",location=no"; // yes|no
_info += ",directories=no";// yes|no
_info += ",status=no"; // yes|no
_info += ",menubar=no"; // yes|no
_info += ",scrollbars=no";// yes|no
_info += ",resizable=yes"; // yes|no
_info += ",dependent"; // close the parent, close the popup, omit if you want otherwise
_info += ",height=250";
_info += ",width=425";
_info += ",left=465";
_info += ",top=100";
DispWin=window.open(urlLoc,_winName,_info);
}
</script>
<script type=text/javascript>
function newWinPDF(urlLoc) {
_winName = "MyNewWindow1";
_info = "toolbar=yes"; // yes|no
_info += ",location=no"; // yes|no
_info += ",directories=no";// yes|no
_info += ",status=no"; // yes|no
_info += ",menubar=no"; // yes|no
_info += ",scrollbars=yes";// yes|no
_info += ",resizable=yes"; // yes|no
_info += ",dependent"; // close the parent, close the popup, omit if you want otherwise
DispWin=window.open(urlLoc,_winName,_info);
}
</script>