Assigning JavaScript variable to Application Item
875687Nov 21 2011 — edited Dec 21 2011Can someone please suggest how I can assign the value of a javascript variable declared in the page "Function and Global Variable Declaration" area of a Page Property to a Page Item or Application Item (global item)?
I added a javascript function - get_myvar - that gets the browser timezone in a JS function declared on the page HTML Header area.
Then, declared a JavaScript variable declared on the "Javascript" tab of the page property on the main login page 101
var myvar = jstz.get_myvar();
Now, I want to assign the value of 'myvar' to a page item P101_MYVAR value needs to be set. Ideally I want to assign this in the main page 101 Login Page Process.
Please advice and thanks in advance.
SK