users@woodstock.java.net

getElementById in VWP netbeans6.0

From: jokyog1 <yogini21_at_gmail.com>
Date: Wed, 26 Dec 2007 12:53:28 -0800 (PST)

From the other forums i came to know that getElementById is no longer working
with woodstock components in netbenas6.0 as the components are rendered as
dynamic script tag and not using traditional Html tags.

For example, a text field is rendered as


<script type="text/javascript">
dojo.addOnLoad(function()
{webui.suntheme.widget.common.replaceElement("form1:textField1",
{"widgetType":"webui.suntheme.widget.textField","value":"","required":false,"disabled":false,"style":"position:
absolute; left: 120px; top:
48px","visible":true,"valid":true,"size":20,"readOnly":false,"id":"textField1","autoValidate":false});});
</script>

So, document.getElementById("form1:textField1") returns the "span" element
not the input text field element.

How can I get a reference to textField element?? Is there a way to do this
using dojo or jason? I just simply need to use some basic java script on the
text field. But i am not able to get a reference to it.

Any help would be appreciated.
-- 
View this message in context: http://www.nabble.com/getElementById-in-VWP-netbeans6.0-tp14506244p14506244.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.