in reply to problem with including external javascript file with start_html

My solution to this problem is more like a hammer, I output something like this :

print qq(<script src="lib.js"></script>)

I admit that I haven't used CGI.pms ways of generating stuff in the HTML header much to be of help in that case.

  • Comment on Re: problem with including external javascript file with start_html
  • Download Code

Replies are listed 'Best First'.
Re: Re: problem with including external javascript file with start_html
by pitbull3000 (Beadle) on Sep 04, 2001 at 16:01 UTC
    just stick to your suggestion, unfortunately i couldnt use the print start_html then, or i just put my script outside the head.... thanks guys
      Dont include your javascript file cgi-bin directory instead use any other folder outside of cgi-bin.
      include full path like http://localhost/perl_js/main.js