| passing variables to cgi through popup phew ! |
rajatgarg

msg:1473303 | 10:25 pm on Sep 1, 2004 (gmt 0) | I am trying to call this : <script LANGUAGE="JavaScript"> function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=640,height=480,left = 256,top = 192');"); } </script> then, <a HREF="javascript:popUp('http://10.16.65.58/cgi-bin/24674/tests_to_runcommands .cgi')"><b><font size="5">Select commands </b></a> I need to pass data to tests_to_runcommands.cgi. How to do it? Kindly help
|
StupidScript

msg:1473304 | 11:00 pm on Sep 1, 2004 (gmt 0) | Build your query as a Javascript variable, then pass that variable to the window.open script: <script LANGUAGE="JavaScript"> function popUp(URL) { day = new Date(); id = day.getTime(); thisPage="page"+id; thisURL=URL+"?thisPage="+thisPage; window.open(thisURL,"popupWin","toolbar=0,scrollbars=1,location=0..."); } </script>
|
rajatgarg

msg:1473305 | 4:59 pm on Sep 2, 2004 (gmt 0) | thanks , it works
|
|
|