in reply to Re: How do I send information to Javascript from perl?
in thread How do I send information to Javascript from perl?
one approach would be to redirect to an html file with a query string after you've done all your processing in your perl such as:
from there, you can simply grab the variable on the html using this:$username = 'username'; print "Location: html.html?username=$username\n\n";
<script language="JavaScript"><!-- if (location.search.length > 0) eval('var ' + location.search.substring(1)); //--></script>
|
---|
In Section
Seekers of Perl Wisdom