Good Morning,
I have this Javascript that opens a popup window. The popup window is a form and I am trying to carry 2 url variables and then output them on the form fields. Now the form opens up, but it brings over the incorrect variables
See below:
Here is the Javascript that lives inside a cfoutput tag
<SCRIPT language="JavaScript" TYPE="text/javascript">
function Inquiry()
{
window.name = 'MainWindow';
window.open("sendinquiry.cfm?machineID=#machineID#&unit_num=#unit_num#","displayWindow","width=700,height=600,toolbar=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes");
}
</SCRIPT>
Here is my link
<A HREF="javascript: Inquiry()">Send Inquiry</A>
Now an example of what happens is when I click on the Send Inquiry link, it is for Unit 1481, but when I look on the Send Inquiry form, it is display Unit 1876.
Now when I place it normally without the Javascript the code works and it displays the correct variables.
<A HREF="sendinquiry.cfm?machineID=#machineID#&unit_num=#unit_num#">Send Inquiry</A>
Thanks John
I have this Javascript that opens a popup window. The popup window is a form and I am trying to carry 2 url variables and then output them on the form fields. Now the form opens up, but it brings over the incorrect variables
See below:
Here is the Javascript that lives inside a cfoutput tag
<SCRIPT language="JavaScript" TYPE="text/javascript">
function Inquiry()
{
window.name = 'MainWindow';
window.open("sendinquiry.cfm?machineID=#machineID#&unit_num=#unit_num#","displayWindow","width=700,height=600,toolbar=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes");
}
</SCRIPT>
Here is my link
<A HREF="javascript: Inquiry()">Send Inquiry</A>
Now an example of what happens is when I click on the Send Inquiry link, it is for Unit 1481, but when I look on the Send Inquiry form, it is display Unit 1876.
Now when I place it normally without the Javascript the code works and it displays the correct variables.
<A HREF="sendinquiry.cfm?machineID=#machineID#&unit_num=#unit_num#">Send Inquiry</A>
Thanks John