I'm having trouble with passing varibles in FORMS to a javascript. I would like to know how I should create the popup window to accept the variables and pass it on to the next page.
<SCRIPT LANGUAGE = "JavaScript">
function ShowDetails()
{
window_handle=window.open("DetailsWindow.cfm", "DetailsWindow", "width=550, height=570"
;
window_handle.focus();
}
</SCRIPT>
<FORM ACTION="javascript:ShowDetails()" METHOD="post">
<INPUT TYPE="hidden" name="refno" value="#refno#">
<INPUT TYPE="hidden" name="date" value="#strtdt#">
<INPUT TYPE="hidden" name="det" value="#detcause#">
<INPUT TYPE="submit" VALUE="Details">
</FORM>
I have a page which will read these values. I have tried using the <FORM ACTION="details.cfm?refno="#refno#" ... but this will show all the variables being passed.
Any help will be greatful. Thanks in advance.
Kenneth
<SCRIPT LANGUAGE = "JavaScript">
function ShowDetails()
{
window_handle=window.open("DetailsWindow.cfm", "DetailsWindow", "width=550, height=570"
window_handle.focus();
}
</SCRIPT>
<FORM ACTION="javascript:ShowDetails()" METHOD="post">
<INPUT TYPE="hidden" name="refno" value="#refno#">
<INPUT TYPE="hidden" name="date" value="#strtdt#">
<INPUT TYPE="hidden" name="det" value="#detcause#">
<INPUT TYPE="submit" VALUE="Details">
</FORM>
I have a page which will read these values. I have tried using the <FORM ACTION="details.cfm?refno="#refno#" ... but this will show all the variables being passed.
Any help will be greatful. Thanks in advance.
Kenneth