http://qs321.pair.com?node_id=652489


in reply to javascript-perl interaction

The concept you're after is AJAX (Asynchronous Javascript and XML).

The javascript should use the XMLHttpRequest object provided by the browser to make HTTP requests to the server.
Although the AJAX acronym specifies sending XML messages, you can send whatever you like.

Various javascript libraries exist to help you do AJAX (and other javascript tasks) more easily (and with browser bugs smoothed over).
I'd recommend jQuery, or Dojo.

-David