Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Check Cookies enabled via JavaScript  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm developing web pages for the browser netscape 4.78.
Now I try to check in my page whether the netscape browser showing the pages has c ookies enabled.
In netscape version 5 and 6 it works in JavaScript via navigator.c ookieEnabled. Is there an equivalent function for netscape version 4.78?

Thanks
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the easiest way of testiung crossbrowser wise is:



Eric
 
Carpe Diem
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eric,

it works that way.
Just one remark. To compare by equality that test is stored in the cookie failed because additionaly the jsessionid was also stored in the cookie. Bur checking for test as substring of the cookie contents was successfully.

Thanks again and bye
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cpould just test to see if the length of the cookie is greater then 0 too.
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!