etheracide
12-02-2003, 02:46 PM
I write primarily using PERL, but my new script requires sized windows for which I am using JavaScript to fully control the size of the new window and what it has (such as toolbar, location, status, etc...).
Here is the simple JavaScript that I am using:
<SCRIPT LANGUAGE=JAVASCRIPT TYPE=\"TEXT/JAVASCRIPT\">
<!-- Hide from older browsers
function anothernewWindow() {
imWindow = window.open('IM_window.cgi?username=$username&password=$password&pal=$pal&add=no', 'imwin2', 'toolbar=no,location=no,scrollbars=no,resizable=yes,width=500,height=350')
}
// End hiding script -->
</script>
And I use the following a href to open said window:
<a href=\"javascript:anothernewWindow()\"><span class=subheaders>$pal</a>
Th problem I encounter is that I can't recall how to send the $username, $password and $pal values to the JavaScript-opened window. The window opens up a script which is expecting those values to be in there, but how do I send the values using the JavaScript?
Thank you to anyone that even looks this over.
Here is the simple JavaScript that I am using:
<SCRIPT LANGUAGE=JAVASCRIPT TYPE=\"TEXT/JAVASCRIPT\">
<!-- Hide from older browsers
function anothernewWindow() {
imWindow = window.open('IM_window.cgi?username=$username&password=$password&pal=$pal&add=no', 'imwin2', 'toolbar=no,location=no,scrollbars=no,resizable=yes,width=500,height=350')
}
// End hiding script -->
</script>
And I use the following a href to open said window:
<a href=\"javascript:anothernewWindow()\"><span class=subheaders>$pal</a>
Th problem I encounter is that I can't recall how to send the $username, $password and $pal values to the JavaScript-opened window. The window opens up a script which is expecting those values to be in there, but how do I send the values using the JavaScript?
Thank you to anyone that even looks this over.