R
Richard Trahan
I want a js function to call a Perl script residing on a server.
The Perl script will return a string, to be used by the js.
Pseudo code:
<script>
stringvar = perlfunc_on_server(stringarg)
document.write(stringvar)
</script>
Can stringvar above be a url?
The perlfunc_on_server could take the form of a GET,
like www.myserver.com/cgi-bin/perlfunc_on_server.pl?arg=stringarg
Any other kludge is okay, as long as it works.
I'm very experienced with Perl, but a newbie to js.
Source code would help. Thanks.
The Perl script will return a string, to be used by the js.
Pseudo code:
<script>
stringvar = perlfunc_on_server(stringarg)
document.write(stringvar)
</script>
Can stringvar above be a url?
The perlfunc_on_server could take the form of a GET,
like www.myserver.com/cgi-bin/perlfunc_on_server.pl?arg=stringarg
Any other kludge is okay, as long as it works.
I'm very experienced with Perl, but a newbie to js.
Source code would help. Thanks.