How to Pass a Value from h:inputText to JavaScript?

2005-09-29 Thread Caroline Jen
I have to use JSF to pop up a window from the parent window. In the popup window, I have to pass the value that is entered in a h:inputText back to a text field in the parent window. In order to make sure that I know the way to communicate between the parent window and the popup window, I have

Re: How to Pass a Value from h:inputText to JavaScript?

2005-09-29 Thread Matt Blum
I suggest avoiding using the form objects entirely, and simply using document.getElementById([id]) to obtain references to the text fields. -MattOn 9/29/05, Caroline Jen [EMAIL PROTECTED] wrote: I have to use JSF to pop up a window from the parentwindow.In the popup window, I have to pass the

Re: How to Pass a Value from h:inputText to JavaScript?

2005-09-29 Thread Sean Schofield
If you're going to use document.getElementById then you probably want to take a look at forceId. sean On 9/29/05, Matt Blum [EMAIL PROTECTED] wrote: I suggest avoiding using the form objects entirely, and simply using document.getElementById([id]) to obtain references to the text fields.