Tuesday, 28 June 2011

Accessing <dmfx:docbaseattribute > in javascript or JS

To get the html rendering of the docbaseattributes,Right click on the jsp to know the name of the attribute

Example:
<dmfx:docbaseattribute name="object_name" id="object_name" object="obj" attribute="object_name" col1="</th><th>: </th> <td>" size="60"/>

In view source the above attribute is rendered with name=attributes_contents_attributes_contents_object_name_value_1_0

To access this attribute in Javascript
var obj=document.all.attributes_contents_attributes_contents_object_name_value_1_0.value;

No comments:

Post a Comment