On 11/10/06, Kevin Monceaux <[EMAIL PROTECTED]> wrote:
> It looks like it's geared towards TurboGears 0.9x. Is it still valid for
> 1.x? Or, is there a 1.x version floating around somewhere. I think I'm
> running 1.0b1.
*most* 0.9 stuff will work with 1.0b, the tutorial looks valid from my
glance at it.
> Does the Form Widget have a function to set the focus to the first form
> field?
I don't believe so.
connect(window,'onload',function() {
if (document.forms.length > 0) {
document.forms[0].elements[0].focus();
}
});
is the fancy way to do it if you're doing MochiKit.
> Also, does Widgets have any type of input mask functions?
I don't think there's anything specific. Check the formencode
validators list. If not, it's pretty easy to write your own validator
that does what you want.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---