Re: Javascript focus on text field in repetition
Re: Javascript focus on text field in repetition
- Subject: Re: Javascript focus on text field in repetition
- From: Art Isbell <email@hidden>
- Date: Tue, 14 Feb 2006 09:57:54 -1000
On Feb 14, 2006, at 9:42 AM, John Huss wrote:
My form is a master-detail form. I have a button to add a new
detail item, which adds a new row to my table and repetition. I
want to set focus on the textfield in the new row that get
generated after the form is submitted and the page reloads.
I can't use the onclick event of the button because the focus
disappears after the page reloads. How do I execute the javascript
after everything has been re-generated?
I always add an onLoad event to the BODY tag to set focus. If
different text fields might need focus under different circumstances,
I make BODY dynamic and add an "onLoad" key set to a component method
that returns an appropriate onLoad JavaScript statement.
Aloha,
Art
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden