[Web4lib] Javascript include question
Tanya Rabourn
tanya at pixelcharmer.com
Tue Jun 7 10:41:20 EDT 2005
On Tue, 7 Jun 2005, Thomas Dowling wrote:
> But to answer your question, it seems like you either need a server-side
> solution or a client-side solution. If the condition you're testing for
> is knowable on the server side, your SSI could be something like
> '<!--#exec cgi="/script-that-decides.cgi" -->' Otherwise, you could
> send both versions of the menu and use client-side DHTML tricks to
> display only the right one (with appropriate <noscript> actions, etc.).
If your server has xssi you can match against the user
agent string (or any other environmental variables) using
ssi. Some examples are here:
http://www.websiteoptimization.com/speed/17/17-1.html but a
http://httpd.apache.org/docs-2.1/howto/ssi.html
-Tanya
More information about the Web4lib
mailing list