in reply to Re: Perl not running Javascript
in thread Perl not running Javascript

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.

Replies are listed 'Best First'.
Re^3: Perl not running Javascript
by Gangabass (Vicar) on Nov 08, 2007 at 03:34 UTC

    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.