You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Novaree <ch...@telmore.dk> on 2007/10/03 11:17:06 UTC
Detecting enabled javascript and cookies with JSF
Hi guys,
I need some cool way to detect if javascript and cookies are enabled in a
users browser.
I've tried with basic javascript to no avail. Tried encapsulating it with
<f:verbatim> to no avail.
How do I do this?
Best regards,
Casper Helenius,
Denmark
--
View this message in context: http://www.nabble.com/Detecting-enabled-javascript-and-cookies-with-JSF-tf4560612.html#a13015240
Sent from the MyFaces - Users mailing list archive at Nabble.com.
RE: Detecting enabled javascript and cookies with JSF
Posted by Thomas Fischer <fi...@seitenbau.net>.
Try setting a hidden variable using javascript in the first page and check
whether it is set when the user submits the first page. If it is set,
javascript is on, if not, javascript is off. The same with cookies: set one
in the first page, check whether it is set when the user submits the first
page.
Hope that helps,
Thomas
Novaree <ch...@telmore.dk> schrieb am 03.10.2007 11:17:06:
>
> Hi guys,
>
> I need some cool way to detect if javascript and cookies are enabled in a
> users browser.
>
> I've tried with basic javascript to no avail. Tried encapsulating it with
> <f:verbatim> to no avail.
>
> How do I do this?
>
> Best regards,
>
> Casper Helenius,
> Denmark
> --
> View this message in context: http://www.nabble.com/Detecting-enabled-
> javascript-and-cookies-with-JSF-tf4560612.html#a13015240
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>