Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to call Cgi Filefrom JavaScript Function

Status
Not open for further replies.

bansi

Programmer
May 23, 2001
3
US
I am able to call Cgi file from javascript function and also able to pass QueryString to the cgi file like this
window.open("http:/localhost/hello.cgi?name=value)
But the cgi file doesn't reads the value when i say $in{name}.
Also i am not able to write the values back into parent window from cgi file.
Thanks
Bansi
 
Your parameters should be in the environment variable $ENV{'QUERY_STRING'}. You may have to parse them yourself, unless there is a CGI module option for parsing the query string specifically.

As for writing values back into the window, unless you do a submit that might not work. They would write to the window you open if anywhere. You may be able to write javascript to the new window that sets variables, and try accessing those variables from the original window.

Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top