Guest_imported
New member
- Jan 1, 1970
- 0
Hello, I am having some issues passing variables to a Javascript from a Perl CGI program. What I want is to send back a set of variables to a Javascript program which is to make appropriate alterations to an html document according to the variables which it had been passed....
what I've tried...
-printing out the code from the Perl script as a javascipt
application... I then used the cgi program as a source for the
javascript for the html doc. The problem that arose was that I couldn't figure out how to link to the html doc and pass it the variables instead
of going straight back to the same html doc...
-printing out plain text which stated <script> variables blah blah blah</script> and plugged in an alert call at the beggining of the javascript to watch out for the variables... I just couldn't get this idea to work...
Any solution, new ideas of plain advice is kindly appreciated... thanks
what I've tried...
-printing out the code from the Perl script as a javascipt
application... I then used the cgi program as a source for the
javascript for the html doc. The problem that arose was that I couldn't figure out how to link to the html doc and pass it the variables instead
of going straight back to the same html doc...
-printing out plain text which stated <script> variables blah blah blah</script> and plugged in an alert call at the beggining of the javascript to watch out for the variables... I just couldn't get this idea to work...
Any solution, new ideas of plain advice is kindly appreciated... thanks