File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes browser check alert with cookie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "browser check alert with cookie" Watch "browser check alert with cookie" New topic
Author

browser check alert with cookie

Kevin Roy
Greenhorn

Joined: Dec 10, 2006
Posts: 1
I am trying to create a .js and cookie enabled browser alert, I intend to display a alert message when a certain browser is being used and not show this message again till the session ends... user will get this message again if he/she logs in again(the old cookie should expire)...

the idea is to allow the users to use there browser if they want to but alert them that the browser being used is not compatible...

any suggestions that help me in this endeavor are greatly appreciated.

My code so far...
Cookie: in html page


Javascript: included in html as well


Issues:
I am not able to make the cookie check though JS and activate the alert. Please help.

Thanks in advance

Kawin
[ December 10, 2006: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61187
    
  66

"kawin kawin",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
JavaScript Session cookies

That is what you should be looking into.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: browser check alert with cookie