Click to See Complete Forum and Search --> : Perl in JavaScript


hotcurry
01-20-2003, 04:41 AM
Hi,
Im a perl newbie...i would just like to know how to run or call a perl method (or function) from within a javascript?? :confused: any response will be highly appreciated!
thanx alot!

jeffmott
01-20-2003, 08:54 AM
The best you can do is possibly to execute an entire script by calling it in a new window (but this is not efficient or reliable). Since Perl is executed at the server and JavaScript is executed at the client, they can't access each others routines directly.

The only possible exception to this would be PerlScript, which is embedded in an HTML document the same as JavaScript. Except this requires the user to have a scripting engine for Perl installed as well as the Perl interpreter, which very few do.