"Mark Ramm" <[EMAIL PROTECTED]> writes:
>> Does the Form Widget have a function to set the focus to the first form
>> field
>
>> connect(window,'onload',function() {
>> if (document.forms.length > 0) {
>> document.forms[0].elements[0].focus();
>> }
>> });
>>
>
> You could grab the template for the TableForm widget, add this little
> snippit to the top of it and overide the template param of TableForm,
> and and get what you want.
>
> If you need this kind of form a lot, create your own CustomFormWidget
> class, and set it up with it's own default template param.
Or put this on your master template...
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---