Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

198
Vistas
Alternate for Cookie in Javascript

I'm currently using cookie to store value via JavaScript in client side in IE6 older version

  1. Is there is any other way to store values so that it can be retrieved when user navigates to different pages?

  2. Is there a way to store values in the server via JavaScript without exposing a API in the server or any API which works in old and new browsers?

  3. Is there a way to store values in a file via JavaScript?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Supporting IE6 is not a good idea; even if you are working on some legacy kiosk or something, get them to upgrade!

But to your answers:

  1. No/Sortof -- the other way to do what you want is with localStorage, which was not introduced to IE until 8. You could redesign your app so that instead of different "pages" they are a single page web app; but that's no pleasure in IE6.
  2. No -- For javascript to store values on the server, it needs to send data over the internet. When the client (your javascript in the browser) sends data to the server, that is, by definition, accessing an API. (I don't know what you mean by "or any api that works in old and new browsers" -- that clause doesn't make any sense to me.)
  3. Maybe--but you don't want to. Javascript is prevented from accessing the local file system without explicit user permission, so you can't use the local filesystem to invisibly store data. That's what localStorage is for, but not available in IE6. If you want to explicitly save something as a file, with user choosing the file from a standard popup-window, that is not an easy process, especially in earlier browsers.

In short: I don't know why you're using IE6, and I don't know why you're not using cookies or an ajax call to the server, but those would be your best options.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda