• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Javascript focus on text field in repetition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Javascript focus on text field in repetition
      • From: "John Huss" <email@hidden>
References: 
 >Javascript focus on text field in repetition (From: "John Huss" <email@hidden>)
 >Re: Javascript focus on text field in repetition (From: zac <email@hidden>)
 >Re: Javascript focus on text field in repetition (From: "John Huss" <email@hidden>)

  • Prev by Date: Re: Javascript focus on text field in repetition
  • Next by Date: Re: Javascript focus on text field in repetition
  • Previous by thread: Re: Javascript focus on text field in repetition
  • Next by thread: Re: Javascript focus on text field in repetition
  • Index(es):
    • Date
    • Thread