well that wasnt my question but since you replied, hidden field is not
the only way for JS to communicate with ther server...
you can use xmlhttprequest object to talk to server directly, or use
iframe to discretly postback and get server values back to your page
objects, or you can use the query string on regular postback
darrel wrote:
> > but how do i
> > figure out on server if an element was enabled/disabled by javascript?
>
> client side scripting can't talk to server side scripting directly. There is
> no connection between the two.
>
> What you can do is pass client side information back to the server via form
> data.
>
> So, one option is to use a hidden field, populate the value of that field
> via javascript when you diable the other element, and then read that value
> client-side on postback.
>
> A bit of a hack, but pretty much the only way to get client side javascript
> to communicate with the server side logic.
>
> -Darrel
|