Fellow TurboGears enthusiasts, Okay, I've said it before but I just have to say it again -- the more I dig into TurboGears the more I'm liking it.
I just finished the "Introduction to Widgets" tutorial at: http://Docs.TurboGears.org/1.0/IntroductionToWidgets I found the "Simple Widget Form Tutorial" at: http://Trac.TurboGears.org/turbogears/wiki/SimpleWidgetForm 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. Does the Form Widget have a function to set the focus to the first form field? I usually do that via a little simple JavaScript along the lines of: function FieldFocus() { if (document.forms.length > 0) { document.forms[0].elements[0].focus(); } } Called via the body's onLoad attribute it'll set the field focus to the first form fild it's finds on a page or do nothing if there's no form on the page. If Widgets has something built in to do it I'd rather do it via Widgets. If not, the above has served me well over the years. Also, does Widgets have any type of input mask functions? For example, for a phone number field I prefer to enter just the digits, such as: 2545551212 and have the separator characters filled in automatically, transforming it into: (254)555-1212 It also comes in handy for things such as social security numbers, dates, etc. Again, I have a bit of JavaScript I use to accomplish the above but if it's already in Widgets I don't want to repeat myself there either. P.S. I can hardly wait for the book!! Has anyone mentioned to Amazon.com that it's been released? They're still showing that it hasn't been released yet. Kevin http://www.RawFedDogs.net http://www.WacoAgilityGroup.org Bruceville, TX Si hoc legere scis nimium eruditionis habes. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

