Parag A
Parag A

Reputation: 453

Alternative to use localtorage in IE8

I am getting following error on my JSP page when I use localstorage

localstorage is undefined

Following is the sample JSP code

     if(localstorage['ScriptActivityHelpSectionHidden']!='undefined')
 {
     helpSectionHidden=localstorage['ScriptActivityHelpSectionHidden'];
     if(helpSectionHidden=='true')
     { 
         setEditorWidthForActivity(helpId);
     }else
     {
         $("#helpId").show(); 
     }
 }

Upvotes: 0

Views: 30

Answers (1)

Mister Epic
Mister Epic

Reputation: 16723

You have not spelled it correctly, case matters: localStorage

Upvotes: 1

Related Questions