Thank you for your help. But, I got confused with setChooseButton etc.
Following is my code. It has one TextBox and and one Button. A Button Click
calls java script function Test that shows the text box value in alert box.
How can I fit what you showed here? If possible, please help me understand
this.
<webuijsf:head binding="#{Page2.head1}" id="head1">
<webuijsf:link binding="#{Page2.link1}" id="link1"
url="/resources/stylesheet.css"/>
<webuijsf:script type="text/javascript">
function test(){
var temp =
document.getElementById("form1:textField1");
alert(temp.value);
}
</webuijsf:script>
</webuijsf:head>
<webuijsf:body binding="#{Page2.body1}" id="body1"
style="-rave-layout: grid">
<webuijsf:form binding="#{Page2.form1}" id="form1">
<webuijsf:textField binding="#{Page2.textField1}"
id="textField1" style="position: absolute; left: 120px; top: 48px"/>
<webuijsf:button binding="#{Page2.button1}"
id="button1" onClick="test();"
style="position: absolute; left: 264px; top:
48px" text="Button"/>
</webuijsf:form>
</webuijsf:body>
Thanks.
--
View this message in context: http://www.nabble.com/getElementById-in-VWP-netbeans6.0-tp14506244p14507215.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.