D
DrKen
Sorry to be asking so many questions (and no, I don't expect anyone to
go back and look at what I wrote before--that wasn't what I was
saying) but I'm going beyond what my big, fat Beginning JavaScript
book says.
I am required to add a script block just before the closing </body>
tag. This small script needs to be able to use the value of a form
field that is hidden (and gets its value through a special tag from
the database on the fly). I'm trying to figure out if the hidden
value will be available before this script block, that is all CDATA is
executed or if I need to do something to make sure the hidden value is
set first and then the block at the bottom of the HTML is executed.
Since, as I learned in a previous answer from the group, the script
blocks are executed in the order they occur (apart from event handlers
like onChange calling functions), I'm hoping it is safe to assume a
script block at the bottom won't be processed until after the page is
loaded and the hidden fields are filled in. Is that a correct
assumption? Thanks.
Ken
go back and look at what I wrote before--that wasn't what I was
saying) but I'm going beyond what my big, fat Beginning JavaScript
book says.
I am required to add a script block just before the closing </body>
tag. This small script needs to be able to use the value of a form
field that is hidden (and gets its value through a special tag from
the database on the fly). I'm trying to figure out if the hidden
value will be available before this script block, that is all CDATA is
executed or if I need to do something to make sure the hidden value is
set first and then the block at the bottom of the HTML is executed.
Since, as I learned in a previous answer from the group, the script
blocks are executed in the order they occur (apart from event handlers
like onChange calling functions), I'm hoping it is safe to assume a
script block at the bottom won't be processed until after the page is
loaded and the hidden fields are filled in. Is that a correct
assumption? Thanks.
Ken