One for the gurus

  • Thread starter Thread starter Alvin Bruney
  • Start date Start date
A

Alvin Bruney

Anybody know how to call a javascript function from server side code?

This isn't as simple as it sounds really. I need to call the script after
the handler has executed which rules out attributes completely. Streaming it
via the output stream doesn't seem to work for objects or functions that
aren't part of the IE model (my local script functions for example).

My problem is i'm populating a client side control by streaming out data
from the server. What i have is kinda cheese. Once i stream the data, it
sits in the page and then i pop a client side control to click on. I use the
client side click event to load the control. I'd like to eliminate the last
step and just pull the data, put it in the page and force the control to
load the data all in one step.

Thanks in advance
 
I think u can execute it while the page is loading
by embedding <script> blah blanh </script>
in the body block
 
Back
Top