Looking for ideal way to persist selected list values across multiple list/AJAX requests
Here's the problem I'm having. I will have a JQM page that will contain a series of lists like this:
list 1 (3 items from WS) -> list 2 (2 static items) -> list 3 (many items from WS) -> list 4 (many items from WS) -> dialog
list 1 is populated via an AJAX request to an ASP.NET web service. I have this functioning no problem. Each item in list 1 will contain a unique value (id) that I will need, in conjunction with a selected value from list 2 to make an AJAX request and populate list 3. The value selected from list 3 will populate list 4. The value selected from list 4 will populate details in the final dialog. My big question right now is how should I persist the selected values in lists 1 and 2 to make that AJAX request in list 3? I'm thinking of just using the localStorage object....this is new territory for me so I want to make sure I'm doing it the standard way. I know this is a common scenario especially in JQM pages but like I said this is new for me so I want to make sure. Thanks in advance....