John,

What are you basing the repetition on? If it's a display group, you should be able to use the built in functionality to get the focus. If not I'd look at constructing the whole thing in a function that returns an array. This way you can still dynamically generate the content but you can add the additional logic to set the index.

Let us know what you go with and how well it works.

Zac

John Huss wrote:

I'm trying to set focus on a text field that is inside a repetition in a table. I'd like to set focus on the first field in the last row of the repetition. First I tried naming the field so I could focus on it. But naming the field (name="myfield") makes the repetition not work -- it repeats the first value in every row. Then I considered accessing the element with an index, but since the repetition is dynamically generated, its hard to know what index to use. Any ideas? Thanks, John
------------------------------------------------------------------------

_______________________________________________
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/zac%40m29.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
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