> Hi, > Does anyone know is it possible to call javascript from perl? Can > javascript be included in the same page? Can anyone provide an example of > this? > Thanks in advance, > Mark.
How do you mean "call javascript from Perl"? In general Javascript is a client side language that executes within a browser (client). Perl on the other hand is traditionally a server side language, executed on the server (conveniently). So CGI is *usually* used to send some HTML like stuff to the client, what that stuff is really doesn't matter, as long as the client can understand what the heck to do with it. So if you are asking whether a Perl based CGI script can send Javascript down that particular pipe then sure, if you want Javascript to use the values and methods of Perl, etc. then you will have to work out how to convert those into Javascript and then use them as if they are not linked. Having said that, this is the general case, clients and Javascript can be more powerful than they are often given credit for so more extreme tasks can be accomplished, but with complexity comes learning curve... http://danconia.org -- Boycott the Sugar Bowl! You couldn't pay me to watch that game. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>