httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Venky K <kancharla.venkat...@gmail.com>
Subject Re: [users@httpd] appending javascript to responses
Date Mon, 06 Dec 2004 13:56:51 GMT
Hi Ralf, Nick and Tim, 
    thank you all for your inputs. I`ll try these things and will get
back to you if I still have problems in doing it.

regards
Venky


On Sun, 5 Dec 2004 19:01:10 +0100, Ralf Glauberman
<rglauberman@michaeli-gymnasium.de> wrote:
> don't know what you want do do with the javascript but i once wanted to add
> a banner to all html-files. i did it by adding
> <Directory "YOUR DOCUMENT ROOT">
>    AddHandler html-add-banner html htm
>    Action html-add-banner /cgi-bin/add-banner.cgi
> </Directory>
> 
> <Files "add-banner.cgi">
>    AcceptPathInfo On
> </Files>
> 
> add-banner.cgi is a bash-skript in the cgi-bin which looks like this:
> #!/bin/bash
> echo "Content-type: text/html"
> echo ""
> FILE="$DOCUMENT_ROOT$REQUEST_URI"
> test -f "$FILE" || FILE="$FILE/index.htm"
> test -f "$FILE" || exit 6
> /bin/cat "$FILE"
> /bin/cat "/PATH_TO_YOUR_BANNER/banner.htm"
> 
> try this, if you need any help with the scripts, send me a mail
> ralf
> 
> 
> 
> ----- Original Message -----
> From: "Venky K" <kancharla.venkatesh@gmail.com>
> To: <users@httpd.apache.org>
> Sent: Sunday, December 05, 2004 4:28 PM
> Subject: [users@httpd] appending javascript to responses
> 
> > Is it possible to append some javascipt code to all the responses from
> > apache server? If possible, I would really appreciate it if you can
> > give me some pointers on how to do it?
> >
> > Iam new to this list and did went through the mail archieve (not
> > completely), but couldn`t find any thread which talks about this
> > issue. It would be really nice if you can point me to the thread which
> > talks about this issue, if this had been already discussed in the
> > group.
> >
> > thanks
> > Venky
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> 
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message