Re: Default entry field focus
Re: Default entry field focus
- Subject: Re: Default entry field focus
- From: Calven Eggert <email@hidden>
- Date: Thu, 08 Apr 2004 14:12:00 -0400
I put this script in the WOComponent:
function focusOnFirstField() {
//put focus on the firstfield input field if it exists
if (window.document.firstform != null) {
if (window.document.firstform.firstfield != null) {
window.document.firstform.firstfield.focus();
}
}
}
Then on each page I add the name binding to the form on the page and the
field I want to focus on:
Form: WOForm {
multipleSubmit = true;
name = "firstform";
}
Name: WOTextField {
value = currentMailing.name;
name = "firstfield";
}
Have fun.
Calven.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.