Chip
In NetD when you add the extra html text to a radio button within a page and assuming
you have three options within that radio button and the first option selected
, it
only adds the extra html text to the first row that has been selected by
default.
Question, how does one actually cause the whole of the radio buttons ie the selected
ones and those unselected to have an extra html text when clicked?
I am trying to sause a javascript to be called that will change the value of a textbox
each time the radio is clicked. Can you help
Bola
[EMAIL PROTECTED] wrote:
>
>onBeforeHtmlOutput is too late to set a property (ExtraHtmlText)
>
>think of the process as this:
>1. onBeforeDisplay - set any properties prior to html generation
>2. [display()] - called by NetD
>3. onBeforeHtmlOutput - html is in String format now, to change
> it, you have to do something like the following:
>
> CSpDisplayField df = (CSpDisplayField) event.getSource();
> String html = df.getHtmlText();
> html = CSpUtil.replaceSubstring(html, "search", "replace");
> df.setHtmlText();
> return (PROCEED);
>
>4. [write()] - called by NetD, writes html to the outputstream
>
>two options for you:
>
>a) try onBeforeDisplay
>
>b) in the ExtraHTMLText property in the Studio make sure you
> qualify your quotes (\")
>
> onClick=\"myJavaScript()\"
>
>-Chip
>
>[EMAIL PROTECTED] wrote:
>>Hi,
>>I need to process click on a radio button, in JavaScript. I tried
>>adding a "onClick" event handler through "ExtraHtmlText" in ND studio, for the radio
>button group.
>> This does not add the event handler.
>>I even tried adding the handler, in code through setExtraHtmlText, in
>"OnBeforeHtmlOutput" event of the button.
>>Even this does not add the onClick event handler.
>>Am I missing something ?
>>
>>Thanks
>>Keshav Havnurkar
>
_________________________________________________________________________
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]