Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/02/2006, 22:02
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 19 años, 5 meses
Puntos: 39
Prueba con una cookie.
La creas cuando sea necesario:
Código:
function setCookie(name, value, expire)
{
   document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()));
}
y la recuperas cuando la necesitas:
Código:
function getCookie(Name)
{
   var search = Name + "=";
   if (document.cookie.length > 0)
   {
      offset = document.cookie.indexOf(search);
      if (offset != -1) 
      {
         offset += search.length;
         end = document.cookie.indexOf(";", offset);
         if (end == -1) 
            end = document.cookie.length;
         return unescape(document.cookie.substring(offset, end));
      } 
   }
}
Quiza alguien tenga una mejor idea?
__________________
No repitamos temas, usemos el Motor de busquedas
Plantea bien tu problema: Ayúdanos a ayudarte.