|
-
Apr 19th, 2013, 05:29 PM
#6
Re: javascript variables and placement of
Where exactly have you declared the variables?
My best guess is that you're declaring "j_currentPrincipalBalanceRef" before the element with the ID "txtCurrentPrincipalBalance" is drawn to the screen. The reason it would work in the function is that the function is being called after that element is drawn, whereas when you declare the variable at the global scope, it gets called sequentially.
Try declaring those variables at the bottom of your page in a script tag, rather than in the header.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|