Fwd: Re: [thelist] JavaScript with Apache Server

Justin Leonard jtleonard at yahoo.com
Wed Dec 20 15:07:57 CST 2000


Seb,

Thanks for the help.  I had placed the utils.js file
in my cgi-bin directory as you had explained.  This
was causing me nightmares...  After moving the js file
to another directory everything worked like it should.
 

Thanks again for the assitance,

Justin Leonard

--- Monique Gros <monique_gros at hotmail.com> wrote:
> 
> 
> 
> >From: Seb Barre <sebastien at oven.com>
> >Reply-To: thelist at lists.evolt.org
> >To: thelist at lists.evolt.org
> >Subject: Re: [thelist] JavaScript with Apache
> Server
> >Date: Tue, 19 Dec 2000 17:11:31 -0500
> >
> >At 03:43 PM 12/19/2000 -0600, you wrote:
> >>A friend of mine is having a problem and I thought
> someone might be able
> >>to help.
> >>
> >>Here's the problem:
> >>
> >>Do you by any chance know anything about
> JavaScript
> >>and the Apache Web Server.  I am trying to create
> a
> >>shared code file in JS on the server
> >>
> >>There are several funcitons I have written that I
> would like to
> >>use in several web pages.  ie:  is_num,
> is_empty...
> >>These functions will determine if a string is
> either
> >>empty or if it contains only numbers.  I am using
> >>these to help in form validations.  Rather than
> have
> >>copies in each html file I would like to have one
> >>'utils.js' file on the server.
> >>This file would be included by the following:
> >>
> >><script src="$PATH/utils.js"></script>
> >
> >Javascript is client-side scripting, not
> server-side, so the file can't be
> >located in your CGI-BIN directory.  Put it
> somewhere in your regular static
> >document path and reference that URL instead.  If
> you load a file from the
> >cgi directory, the webserver will try to execute it
> server side and return
> >the output to the browser (which will fail in this
> case).
> >
> >HTH
> >
> >
> >--- -- -
> >Seb Barre - seb at oven.com
> >OVEN Digital Toronto
> >Work: 416-595-9750 x 222
> >Mobile: 416-254-5078
> >http://www.oven.com/
> >
> >
> >---------------------------------------
> >For unsubscribe and other options, including
> >the Tip Harvester and archive of TheList go to:
> >http://lists.evolt.org Workers of the Web, evolt !
> 
>
_________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com
> 
> .
>  your FREE download of MSN Explorer at
> http://explorer.msn.com
> 
> .
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/




More information about the thelist mailing list