<snip from= "David Lewis" email= "[EMAIL PROTECTED]">
I am writing a Perl CGI script
which generates an HTML file that uses javascript javascript. I need
to
enable Perl to use some of the
variables created in the javascript code. If anyone knows how to make
this happen, or can point me toward
someone who can, I'd really appreciate it. Thanks
</snip>
Well, I'm not sure I really understand what you are trying to
do exactly. However, from your description I am
assuming it's a cgi application. That being the case the first
thing that comes to mind is that can use this . .
.
<form name="myform"
onsubmit="writeVariablesToHiddenFields();"
method="post|get"
action="http://domain.com/cgi-bin/whatever.pl">
Then write the function "writeVariablesToHiddenFields()" to
populate those hidden fields. making sure
you return true at the end of the function so that the form
submission takes place. Then all you should have
to do is use those fields to populate your perl
variables.
Hopefully this is what you were looking for,
($_="115630525841264815593750
59425919501649496140251515604 14115302119504049415815213536 15491760422119366061522953532 11559584920263641371859145844 1526")=~s/(.)(.)(..)/pack("C", substr($_[1],$1.$2,4).substr ($_[1],$3,4))/ge if $_[1]= unpack("B*",<DATA>);print; __END__ WINDOZE |
- Perl CGI using JavaScript David Lewis
- Re: Perl CGI using JavaScript Ranga
- Tim Dumas