Skip to Content
Former Member
Aug 03, 2005 at 12:47 AM

Javascript enabling and using JS methods on TextEdit component


Hello Friends:

I am working to display data using TableView component.

In each row, one of the cell contains a group of radio

buttons and an other cell contains TextEdit component.

For an event on the group of radio buttons, the TextEdit

should flip editable to non-editable and vice-versa.

I am using the TextEdit attribute method,


to expose the JavaScript methods of the component.

I am using the following bits of code for accessing the

TextEdit JavaScript functionality.

var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
var text_edit_comp = eval(func(id_of_textedit));

Whole thing works as planned, but it is not possible to

disable or enable the TextEdit component using the

JavaScript, as shown above.

In the portal documentation, the JavaScript object

methods were mentioned only for certain components, NOT

including TextEdit !!

If I replace TextEdit with InputField, it works perfectly

as like needed.

How to hack it to work for TextEdit ?

Thank you very much for your kind answers.

Prasad Nutalapati