It doesnt really get round the problem of not using javascript on teh
client; but perhaps a better way to do this is to interrogate the DOM.  If
you use one of teh standards objects like document.image it returns a
boolean showing whther or not javascript is installed.  In addition you
could explicitly test for the existence of an object from a specific
version, so you could tell which version of js was being used.

but as i say, both of these involve using js on the client. 

-----Original Message-----
From: James Childers [mailto:[EMAIL PROTECTED]]
Sent: 13 February 2003 21:38
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Server detection of Javascript enabled?


No. HTTP headers contain information about the request to the server.
Unfortunately none of those headers have information about JavaScript.

The only way that I could see you being able to do this is to send a simple
page with JavaScript to the client and have the JavaScript forward to a
separate page on your server. If your server receives the request, you know
that JavaScript is enabled.

Kludgy and heavy, but that's all I got.

-= J

> -----Original Message-----
> From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 3:34 PM
> To: Struts User
> Subject: Server detection of Javascript enabled?
> 
> 
> Without using Javascript on the client, can the server detect 
> if the client
> has Javascript enabled?  Is there something in the HTTP 
> request header that
> indicates this?
> 
> [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


**************************************************************************
CONFIDENTIALITY / DISCLAIMER NOTICE

This communication contains information, which is confidential 
and may also be privileged. It is for the exclusive use of 
the recipient(s). If you are not the intended recipient(s)
please note that any distortion, copying or use of this
communication or the information in it is strictly prohibited.
Any  views or opinions presented are solely those of the
author and do not necessarily represent those of
Euro RSCG Wnek Gosper.

If you have received this communication in error please notify 
us by e-mailing the author or by telephoning (020  7240 4111)
and then delete the communication and any copies of it.

This footnote also confirms that this email message has been
swept by MIMEsweeper for the presence of computer viruses.

http://www.eurorscg.co.uk
**************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to