Page 2 of 2

Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 7:42 pm
by Kateryna Grynko

Hi Peter,

What exactly is not working? An array is saved in localStorage, you can read it and process as you need on the second page.


Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 7:54 pm
by Peter Abbruzzese

When I select 1 check box it saves all of the check boxes into local storage and displays them onto the other page. I just want the ones i selected to show on the 2nd page.


Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 8:49 pm
by Kateryna Grynko

Hi Peter,

Add the following code on the second page to add all the array in a line to a label named labelName:prevar s = localStorage.getItem("arr");
Apperyio("labelName").text(s.replace(/,/gi,",\n"));/pre