Is there a way to convert a JavaScript variable into Perl? In other words,
you have a JavaScript function:
function test(input_to_function) {
$perlvariable = input_to_function;
print "alert('$perlvariable'); #get an alert box showing the value
print "$perlvariable\n"; #variable prints on page
}
I've tried dozens of syntax variations on this without success. Then, I've
gone looking at various perl modules which sound like they might work
(Data::Javascript, Javascript-0.52, WDDX), but I can't make heads or tails
of the documentation. It seems like I'm missing some simple point.
Forinstance, this works inside the JavaScript tags:
print "document.textfieldname.value = '$perlvariable'\n"; #puts value in
text box
But the reverse doesn't work:
print "'$perlvariable' = document.textfieldname.value\n"; #doesn't work
Any insights appreciated.
Bruce Maston
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]