Forum Moderators: open
1) user clicks on button
2) button opens a new pop-up window (sized to my liking) and displays a page (that I have told it to) with data generated from a cgi script.
I am using a function that looks like this:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=500,left = 262,top = 134');");
}
// End -->
</script>
My button code looks like this:
<input type=button value="View HCP History" onClick="javascript:popUp('url')">
I need to pass about 5 variables from the first page to the cgi program to generate the resulting content in the pop-up window.
Where do I put the variables!? No matter what I do - I can't get it to work.
In the initial page (where the button is) I KNOW that the hidden fields contain the info I need...I just can't get it to the pop-up.
(I removed the actually cgi program name and URL - If you need it, I will supply)