John,
setExtraHtmlText would work in the
checkBox_onBeforeDisplayEvent, but won't work in
checkBox_onBeforeHtmlOutputEvent since the tag has already been generated at
that point.
If it doesn't you have the option of using getHtmlText and setHtmlText in
.._onBeforeHtmlOutput to add "checked" or "checked=true" to the tag.
Aby
> -----Original Message-----
> From: John G. de Freitas [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, June 25, 1999 6:09 PM
> To: [EMAIL PROTECTED]
> Subject: [ND] dynamically selecting a checkbox
>
>
> Hi all.
>
> I have a checkbox that is bound to a
> data object. If the value of the field
> it is bound to is 'Y', the checkbox should
> be selected. However, I have tried selecting
> the checkbox in every way I could think of,
> but it still always appears unchecked on the
> page. I've tried:
>
> setExtraHtmlText(" checked")
> select()
>
> in many different events, with no luck.
>
> Does anyone know how to dynamically select
> a check box? Thanks.
>
> -John G. de Freitas
> _________________________________________________________________________
>
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
> For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]