Ah well missing the obvious.
Looks like its back to Javascript then!
So I assume this means there is no way of running and veiwing PerlScript webpages from a Linux box? I just assumed that everything Perl was multiplatform.
By the way I have no problems running Perl routines on the server from Firefox and receiving output HTML back.
Anyway
Thanks
| [reply] |
If you are persistent enough you can find a way to run Perl scripts in Firefox. I've used Javascript + XPCOM to open sockets to a Perl RPC service I created which will allow Javascript to make calls to Perl subroutines. I used it to wrap (partially) DBI methods so I could talk to real databases from Javascript. I also utilized a <perl> tag to embed Perl in the XUL. The RPC client (written in Javascript) has a method that will extract the Perl code on page load and send it to perl to be executed.
The technique does not allow Perl to replace Javascript, but allows Javascript to take advantage of some of Perl's strengths.
| [reply] |