in reply to cgi and javascript
Hi,
Some options:
You can print out the javascript code like the html, or along with it.
You can use the facility of CGI.pm to insert the javascript code with a method call, but this is not really necessary.
Perhaps for me the best option is to put this code outside the cgi and only add a tag that makes reference to this code. And using some templating facility, like TT, Mason, etc.
And on the way, getting a look at AJAX or XMLHttpRequest can be nice, but I think this is for a next step, once you get familiar with the web driven programming...
Regards,
:)
|
|---|