• 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
Fwd: How to focus on a text field on loading?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: How to focus on a text field on loading?


  • Subject: Fwd: How to focus on a text field on loading?
  • From: "Jerry W. Walker" <email@hidden>
  • Date: Tue, 7 Mar 2006 13:40:11 -0500

Hmmm, I guess I have to cut this down and try again to get it accepted on the WO mailing list.

Begin forwarded message:

From: "Jerry W. Walker" <email@hidden>
Date: March 7, 2006 12:58:33 PM EST
To: Mark Morris <email@hidden>
Cc: Jim Wong <email@hidden>, WebObjects Dev Apple <email@hidden>
Subject: Re: How to focus on a text field on loading?


Doh!  Right!  Thanks Mark.

Regards,
Jerry

On Mar 7, 2006, at 12:14 PM, Mark Morris wrote:

There's a typo here. Although I'd imagine everyone knows what Jerry meant, just in case, the name you wish to give the element should be entered in double quotes, as in "FirstNameField", not parentheses.

... [snip]

On Mar 7, 2006, at 11:03 AM, Jerry W. Walker wrote:

Hi, Jim,

You can add bindings (HTML tag attributes) to any tag on your page. To do so, open your page in WOBuilder, be sure you're in Layout view (selected from the three tabs in the upper left corner of the page) and double click on the WOForm or WOTextField. This opens the Inspector panel for that WOElement tag.

Notice the square in the far upper right corner of the inspector panel containing both a "+" and "-". Click on that square to display a small drop-down menu with the items, "Add binding" and "Delete binding". One of these might be grayed out.

Click on the "Add binding" and you'll notice that a new binding is added to the inspection panel for that WOElement. Replace the string "binding1" with "name" on the left side of the line, then press tab to complete the field and open the right side of the line. Fill in the name you want to use for the tag on the right side, but be careful to enclose it in parentheses. If you don't do that, then WOBuilder will presume that you're providing a key for some component in your WOComponent's corresponding class file and complain that it can't find the corresponding key.

Save your component and you're good to go.

... [snip] ...

On Mar 7, 2006, at 10:48 AM, Jim Wong wrote:

Hi...but my form and field are all WOForm and WOTextField. how to name them?

... [snip] ...
On 07 Mar 2006, at 10:50 AM, Galen Rhodes wrote:

Jim,

In the <body> tag of your document you need to put a little bit of javascript like so:

<body onLoad="document.NameOfTheForm.NameOfTheField.focus()">


On Mar 6, 2006, at 9:09 PM, Jim Wong wrote:

How do i have the cursor focus on a particular text field upon loading the page?


... [snip] ...

--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems


    email@hidden
    203 278-4085        office



_______________________________________________
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


  • Prev by Date: Re: appserver -> root after 10.3.9 upgrade
  • Next by Date: Re: appserver -> root after 10.3.9 upgrade
  • Previous by thread: Re: How to focus on a text field on loading?
  • Next by thread: appserver -> root after 10.3.9 upgrade
  • Index(es):
    • Date
    • Thread