U
UJ
I have some javascript code that I need to run based on a value I know at
the server when I load a page. How can I do an onload event call with a
condition value from the server. (The reason is depending on how the page is
loading - with pre-loaded values or just the defaults) So in a sense what I
want to do is something like:
if me.DataType = 0 then
<body onload="LoadRoutine(0)">
else
<body onload="LoadRoutine(1)">
end if
I'm doing stuff in the javascript that I want to do on the client side but
need to set up stuff initially depending on the fields from the server side.
Hope this makes sense.
TIA - Jeffrey.
the server when I load a page. How can I do an onload event call with a
condition value from the server. (The reason is depending on how the page is
loading - with pre-loaded values or just the defaults) So in a sense what I
want to do is something like:
if me.DataType = 0 then
<body onload="LoadRoutine(0)">
else
<body onload="LoadRoutine(1)">
end if
I'm doing stuff in the javascript that I want to do on the client side but
need to set up stuff initially depending on the fields from the server side.
Hope this makes sense.
TIA - Jeffrey.