Help with Javascript, CGI and Apache...?

  • Thread starter Thread starter mistersweeps
  • Start date Start date
M

mistersweeps

Guest
I have written a CGI script in Perl, and its running on an apache server. The script generates some html, and it all loads a page with a few forms and text boxes. I wanted to use a rich text editor, so I got a javascript rich text editor, and included it in the html. Going through the webserver, however, doesn't load any javascript. If I copy and load the HTML source of the page and put it in an .html file and run it locally, it runs fine. how do I fix this?
basically, this is in the head of the html produced:
<script src="whizzywig.js" type="text/Javascript"></script>

and in the body this is the html produced:
<textarea name="email" style="width:95%; height:300px" id="email"></textarea><script type="text/javascript"> makeWhizzyWig("email", "all"); </script>

I can see the text area, but can't see the javascript run. The code in html is fine, because it runs locally from a .html file, but I think it has to do with running javascript from an apache server.
 
Back
Top