homepage Welcome to WebmasterWorld Guest from 174.129.74.186
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved