Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Assigning JavaScript variable to Application Item

875687Nov 21 2011 — edited Dec 21 2011
Can 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 18 2012
Added on Nov 21 2011
12 comments
3,511 views