I have a parent window, spawning a child window with an onChange open() command to open a separate window when a textbox in a cfinput statement changes...
Parent Window:
<cfinput name="myinput" type="text" onchange="open('insurance.
cfm', 'prevWin', 'status,width=640,height=5
00,scrollb
ars=yes');
">
In the spawned child window ('prevWin') I am performing this onload:
<script language="JavaScript">
<!--
function getsearch() {
myvalue=window.opener.path
demo.myinp
ut.value;
}
//-->
</script>
<body onLoad="getsearch();">
i am wondering how i can call that "myvalue" into play in a cfquery such that i could do a
SELECT * From searchtable
WHERE searchterm like '%myvalue%'
I have attempted to call: <cfset myvariable = myvalue>
i only need to know how to reference back to the javascript variable as i am used to only working wtih CF variables, not JS...
time is of the essence on getting this small answer.
Start Free Trial