Hi,
Is it possible to pass a variable from a CF template (via a hidden form field) into a JavaScript popup window ?
The name of the page with the form (and so the variable) in is story.cfm
The name of the page i wish to load into the popup is mail_set.cfm
I wish to refer to this variable in mail_set.cfm (in the popup window!)
I have tried the following:
<SCRIPT language=JavaScript>
function topWindow1(){
popup = window.open("mail_set.cfm","","height=300,width=580,scrollbars=no"
;
}
</SCRIPT>
<FORM onsubmit=javascript:topWindow1(); method="post">
<input type="Hidden" name="article_number" value="#variable#">
<INPUT type=submit value="Submit Query">
</FORM>
This caused a error in the popup window saying that the variable wasnt defined.
Does anyone please see anything wrong with this code, or is what im trying to do even possible?
Thanks in advance
Is it possible to pass a variable from a CF template (via a hidden form field) into a JavaScript popup window ?
The name of the page with the form (and so the variable) in is story.cfm
The name of the page i wish to load into the popup is mail_set.cfm
I wish to refer to this variable in mail_set.cfm (in the popup window!)
I have tried the following:
<SCRIPT language=JavaScript>
function topWindow1(){
popup = window.open("mail_set.cfm","","height=300,width=580,scrollbars=no"
}
</SCRIPT>
<FORM onsubmit=javascript:topWindow1(); method="post">
<input type="Hidden" name="article_number" value="#variable#">
<INPUT type=submit value="Submit Query">
</FORM>
This caused a error in the popup window saying that the variable wasnt defined.
Does anyone please see anything wrong with this code, or is what im trying to do even possible?
Thanks in advance