XModPro

Javascript variables

Alessandro Boglio Alessandro Boglio asked Jun 25, 2013
Active Sep 14 · Viewed 2064 times
hi all,i have created a template with 3 dropdown on top to filter the result.<br />The 3 dropdown had a javascript on the onchange event.<br />The javascript save the value of the dropdown in the localStorage and then execute a postback.<br />Example.<br />localStorage.setItem(&amp;amp;#39;Zona&amp;amp;#39;, zona);<br />__doPostback;<br />After the postback i need to reuse the variable to reposition the dropdown value.<br />I’ve created a function in Javascript that return localStorage.getItem(‘Zona’) but how can i use this value in XMOD Template with XMOD SELECT to reposition the dropdown and as a Parameter for a LISTDATASOURCE to filter the recordset?I can’t use URLPARAMETER because it will be simple for another person to look into data that not belong to him.Any help appreciated.

0 Answers

Loading answers...