S
stahl.karl
Howdy,
I have a CGI/Perl script that simply creates a few Javascript
variables. For example:
--------myCGI.pl----------------------------------------
print("Content-type: text/javascript\n\n"));
print("var x = 5");
Now in my .html code I have TWO <script> blocks where I call the code
as follows:
<script type="text/javascript" src="cgi-bin/myCGI.pl"></script>
<script type="text/javascript">
All other Javascript functions, some which refer to the
variables produced by CGI.
</script>
This works just fine, but it seems like there must be a way to just
simply call the CGI script from WITHIN the second block above. Maybe
something like: run("cgi-bin/myCGI.pl"). Does something like this
exist?
Thanks a million.
I have a CGI/Perl script that simply creates a few Javascript
variables. For example:
--------myCGI.pl----------------------------------------
print("Content-type: text/javascript\n\n"));
print("var x = 5");
Now in my .html code I have TWO <script> blocks where I call the code
as follows:
<script type="text/javascript" src="cgi-bin/myCGI.pl"></script>
<script type="text/javascript">
All other Javascript functions, some which refer to the
variables produced by CGI.
</script>
This works just fine, but it seems like there must be a way to just
simply call the CGI script from WITHIN the second block above. Maybe
something like: run("cgi-bin/myCGI.pl"). Does something like this
exist?
Thanks a million.