perlboer has asked for the wisdom of the Perl Monks concerning the following question:

Hello Perlmonks,

Within my perl-cgi script I'm refering to javascripts
I don't know if it's allowed (like it) from your point of view
But anyway
<script language="javascript" src="../site/javascripts/sniffer.js"></ +script> <script language="javascript1.2" src="../site/javascripts/custom.js">< +/script> <script language="javascript1.2" src="../site/javascripts/style.js"></ +script>
The error log:
c:/_temp/test_site/scr_mn_home/perl/site/javascripts/sniffer.js is not executable;
ensure interpreted scripts have "#!" first line

Must I add a setting in httpd.conf ?

Thank you in advance
Perlboer

Replies are listed 'Best First'.
Re: interper javascript
by japhy (Canon) on Oct 05, 2005 at 13:28 UTC
    Your problem is most likely that your javascript files are contained in a part of the web site that your web server assumes holds ONLY CGI programs; therefore, it tries to execute the javascript files as server-based code. This is a server issue; move the files somewhere else.

    Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
    How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart
      Japhy,

      Yes they do, I will move them.
      Thank you for yor help.
      Really kind.


      Perlboer
Re: interper javascript
by Anonymous Monk on Oct 05, 2005 at 13:08 UTC
    Consult your webserver documentation -- not perl