Page 1 of 1

lists in local storage

Posted: Thu Nov 01, 2012 7:52 pm
by Michael4771079

Hi,
I have a form with in an app with input components where the user enters the pickup and drop off point info, the info is stored in local storage and on click the info is sent through sendgrid, is there a way to build a clickable list of pickup and drop off points that the user has previously entered so as the user can click on a previously entered value, and the value is sent in the email


lists in local storage

Posted: Thu Nov 01, 2012 8:17 pm
by maxkatz

You would need to store all drop off and pick up locations in local storage. You could save them in one propert as an array:

{"pickup1", "pickup2"...}

or as separate variables

pickup1
pickup2

then you would need to create the selects in runtime.


lists in local storage

Posted: Thu Nov 01, 2012 9:38 pm
by Michael4771079

Thanks Max,

pickup and drop off is stored in local storage in order for email to work,

I was hoping to build a dropdown list of previous pickups that the user could select and for the value to be read in the email, do you have an examples that might point in the right direction, also need tutorial on runtime,

cheers


lists in local storage

Posted: Thu Nov 01, 2012 11:31 pm
by maxkatz

Here is an example of building a list: http://help.gotiggr.com/getting-start...


lists in local storage

Posted: Fri Nov 02, 2012 12:02 am
by Michael4771079

Max,
I understand this example but in this app we dont know where anyone is comming from or going to, so we cant build a list for further use, the end user builds the list as he uses the app,


lists in local storage

Posted: Fri Nov 02, 2012 2:09 am
by maxkatz

You could check every time the page is loaded if anything is saved in local storage for that user. If yes, create the drop downs.