Hi,
i want to be able to pass the id from the query into the popup window but not sure how to do it, would you please help me with this? - thanks
code below (A) working fine with open the pop up detail page but din't know how to passs an id into detail page.
<!----A--->
<script>
function openWin()
{
window.open("detail.cfm","_blank","toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");
}
</script>
<cfset foo = querynew('id_int,aNo_var,Renew,Cancel')>
<cfloop query="getOrderHist">
<cfset queryaddrow(foo)>
<cfset querysetcell(foo,'id_int',getOrderHist.id_int)>
<cfset querysetcell(foo,'aNo_var',getOrderHist.aNo_var)>
<cfset querysetcell(foo,'Renew','<a href="javascript: void(0);" onclick="openWin()">view</a>')>
</cfloop>
<!---B--->
I try to call the page directly such as below but got an error for "invalid character"
<cfset foo = querynew('id_int,aNo_var,Renew,Cancel')>
<cfloop query="getOrderHist">
<cfset queryaddrow(foo)>
<cfset querysetcell(foo,'id_int',getOrderHist.id_int)>
<cfset querysetcell(foo,'aNo_var',getOrderHist.aNo_var)>
<cfset querysetcell(foo,'Renew','<a href="javascript: void(0);" onclick="window.open("detail.cfm?id=#id#","_blank");>renew</a>')>
</cfloop>