Try this:
description.setAttribute("onChange","document.getElementById(\"" + form.getId()
+ "\").submit()");
Also look at the generated HTML to see if there is anything missing in it. I
also highly recommend Firebug for debugging javascript stuff like this.
Muzaffer
> -----Original Message-----
> From: news [mailto:[email protected]] On Behalf Of Tim Hooper
> Sent: Wednesday, February 11, 2009 8:56 AM
> To: [email protected]
> Subject: TextField to post form
>
> In my application I want to post the form when a textbox contained within
> the
> form is changed, rather than forcing the user to click the submit button. I
> tried setting an action listener on the TextBox, but that doesn't seem to
> fire
> unless the user hits enter. I've also tried setting an attribute as
> follows:
>
> description.setAttribute("onChange","this.form.submit();");
>
> but that doesn't work either. Is this something that I can make happen with
> this framework?
>
> Thanks.
>
> Tim