dan.getz
01-09-2004, 05:57 PM
Okay, Here's what I can do:
<script type="text/javascript" src="http://www.myurl.net/myperl.pl"></script>
<script type="text/javascript">
alert(myvar);
</script>
The problem is what I need to be able to do is manipulate some variables in javascript and then call the perl script using those variables and then use the variables the perl script brings back.
Something like the following:
<script type="text/javascript">
var myvar = 3;
<script type="text/javascript" src="http://www.myurl.net/myperl.pl?perlvar="+myvar></script>
alert(myvar2); //myvar2 returned by myperl.pl
</script>
but that obviously doesn't work. Any ideas?
<script type="text/javascript" src="http://www.myurl.net/myperl.pl"></script>
<script type="text/javascript">
alert(myvar);
</script>
The problem is what I need to be able to do is manipulate some variables in javascript and then call the perl script using those variables and then use the variables the perl script brings back.
Something like the following:
<script type="text/javascript">
var myvar = 3;
<script type="text/javascript" src="http://www.myurl.net/myperl.pl?perlvar="+myvar></script>
alert(myvar2); //myvar2 returned by myperl.pl
</script>
but that obviously doesn't work. Any ideas?