RE: Server detection of Javascript enabled?

2003-02-14 Thread Chen, Gin
You dont have to go thru all that.

There's a  tag as well.
It will get involked (duh) when scripts are not enabled.


scriptlet or jsp code to handle scripts


scriptlet or jsp code to handle no scripts


-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 4:38 PM
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]

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




RE: Server detection of Javascript enabled?

2003-02-14 Thread John Cavacas
I think the main problem might be one of design. Why do you need to know if
a client has JavaScript enabled or not? I'm not sure of your particular
requirements, but relying on some sort of application functionality that is
dependent on a client side feature like JavaScript, smells of flawed design.

Just my, severely devalued, 2 cents...



This communication is intended for the use of the individual(s) or entity it
was addressed to and may contain confidential and/or privileged information.
If the reader of this transmission is not the intended recipient, you are
hereby notified that any review, dissemination, distribution or copying of
this communication is prohibited.  If you receive this communication in
error, please notify the sender immediately and delete this communication
from your system(s) to which it was sent and/or replicated to. (c) 2002
Sapiens Americas Corp.

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




RE: Server detection of Javascript enabled?

2003-02-14 Thread Alvarado, Juan (c)
There is a getJavaScriptEnabled method in that component that will tell you
if javascript is enabled or not. It definetely does have to send some
javascript to the browser in order to perform some tests and detect if it is
enabled. But the bottom line is it tells you if javascript is enabled or
not.

-Original Message-
From: Michael Hanisch [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 8:44 AM
To: Struts Users Mailing List
Subject: RE: Server detection of Javascript enabled?


On Fri, 2003-02-14 at 03:50, Aaron Oathout wrote:
> Take a look at browserhawk. http://www.cyscape.com/ 
> We used it at the last company I worked for, tells you alot about the 
> browser.
Yeah, but all it does is invoke some Javascript in the user's browser...
so we're back where we started :-(

Michael.


-- 
Michael Hanisch  [EMAIL PROTECTED]
Red Hat - RH Interchange Inc., Orleansstrasse 4,  D-81669 Munich/Germany
phone: +49 (0)89 206058-53  fax: +49 (0)89 206058-88


-
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]




RE: Server detection of Javascript enabled?

2003-02-14 Thread Michael Hanisch
On Fri, 2003-02-14 at 03:50, Aaron Oathout wrote:
> Take a look at browserhawk. http://www.cyscape.com/ 
> We used it at the last company I worked for, tells you alot about the 
> browser.
Yeah, but all it does is invoke some Javascript in the user's browser...
so we're back where we started :-(

Michael.


-- 
Michael Hanisch  [EMAIL PROTECTED]
Red Hat - RH Interchange Inc., Orleansstrasse 4,  D-81669 Munich/Germany
phone: +49 (0)89 206058-53  fax: +49 (0)89 206058-88


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




RE: Server detection of Javascript enabled?

2003-02-13 Thread Aaron Oathout
Take a look at browserhawk. http://www.cyscape.com/ 
We used it at the last company I worked for, tells you alot about the 
browser.

Aaron


On Thu, 13 Feb 2003, Sean Chambers wrote:

> 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]
> 


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




RE: Server detection of Javascript enabled?

2003-02-13 Thread Sean Chambers
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]




RE: Server detection of Javascript enabled?

2003-02-13 Thread Mark Galbreath
It's "klugey."  Your spelling is a British WWII army concoction referring to
a field latrine.

Mark

-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 13, 2003 4:38 PM
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]



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




RE: Server detection of Javascript enabled?

2003-02-13 Thread Alvarado, Juan (c)
These people http://www.browserhawk.com/ have some products that will do
what you want. I'm not sure if you're willing to fork out the $$$, but I
thought I'd run it by you anyways.

If you don't want to spend the dough, I think the suggestion James Childers
gave you might be an approach to take.

Good luck.

-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 4: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]




RE: Server detection of Javascript enabled?

2003-02-13 Thread Raible, Matt
My first question is why would the server care if javascript is
enabled/disabled?

> -Original Message-
> From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 2: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]




RE: Server detection of Javascript enabled?

2003-02-13 Thread James Childers
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]