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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to