Re: How do embed javascript

2003-02-27 Thread Todd Wade
"Tom McKellips" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > When I run it on the command line I get no errors. But Still the Javascript > fails to execute in the browser if it is generated from PERL. If I put the > very same javascript in it's own html page and call it with a br

Re: How do embed javascript

2003-02-27 Thread Tom McKellips
When I run it on the command line I get no errors. But Still the Javascript fails to execute in the browser if it is generated from PERL. If I put the very same javascript in it's own html page and call it with a browser it works perfect. Do I have to escape javascript in perl some how? On Thu

Re: How do embed javascript

2003-02-27 Thread Tom McKellips
Ok here is the subroutine code sub open_html{ open(HTML,"<$rootdir/$FORM{'username'}.html"); @html = ; close(HTML); print < Welcome $FORM{'username'} to the HTML Editor --> $logo_url   $banner_url Welcome $FORM{'us

Re: How do embed javascript

2003-02-27 Thread zentara
On Wed, 26 Feb 2003 19:00:18 -0800, [EMAIL PROTECTED] (Tom McKellips) wrote: >Hi, > >How do I embed a java script inside a perl cgi? In my perl code I have a Watch wordwrap :-) This javascript will give you the option to view another cgi in a popup window. The printenv script is at the bottom