in reply to Perl not running Javascript

Try this:

print qq{<script type="text/javascript" src="ncbi.js"></script>};

Replies are listed 'Best First'.
Re^2: Perl not running Javascript
by Anonymous Monk on Nov 07, 2007 at 14:43 UTC
    Hello,

    I changed this line in the header as you suggested but it still not working. THe code I got this from is at:
    http://nsaunders.wordpress.com/2007/02/20/my-first-ajax-for-bioinformatics-page/
    I have only modified the last script from PHP to PERL and changed the location where the script is called. Any help would be appreciated.

    Thanks.

      If you have JS-file in your cgi-bin directory (but it's a bad idea as others pointed) the line should be:

      print qq{<script type="text/javascript" src="/cgi-bin/ncbi.js"></scrip +t>};

      Also take a look at CGI.pm it's make life easy.