for example here is a form generated by web2py:
<form action="" class="t2-login" enctype="multipart/form-data" method="post"><table><tr id="t2_person_email__row"><td><label for="t2_person_email" id="t2_person_email__label">Email: </label></ td><td><input class="string" id="t2_person_email" name="email" type="text" value="" /></td><td></td></tr><tr id="t2_person_password__row"><td><label for="t2_person_password" id="t2_person_password__label">Password: </label></td><td><input class="password" id="t2_person_password" name="password" type="password" value="" /></td><td></td></tr><tr id="submit_record__row"><td></td><td><input type="submit" value="Submit" /></td><td></td></tr></table><input name="_destination" type="hidden" /><input name="_formkey" type="hidden" value="c35963b8- a31f-4330-98ee-4725d333c3d7" /><input name="_formname" type="hidden" value="default" /></form> each row has id="[table]_[field]__row" each label has id="[table]_[field]__label" each input has id="[table]_[field]" and name="[field] Here is a sample widget: http://mdp.cti.depaul.edu/AlterEgo/default/show/170 Massimo On Nov 12, 8:45 am, billf <[EMAIL PROTECTED]> wrote: > Massimo > > Sorry to be a pain but I have been thru web2py_manual.pdf, > web2py_manual_cut.pdf and t2.pdf and I can't find any mention of rules > for ID and CLASS. > > can you be more specific? > > Thanks,Bill > > On Nov 12, 2:11 pm, mdipierro <[EMAIL PROTECTED]> wrote: > > > The manual described rules for ID and CLASS in forms. If you make your > > own widgets simply use the same convention. > > > Massimo > > > On Nov 12, 12:05 am, billf <[EMAIL PROTECTED]> wrote: > > > > I don't know much about widgets and I have a question. > > > > How do I ensure that my widget is styled in line with other, similar > > > components? > > > > Or putting it another way, can I ensure that my widget gets class= or > > > id= attributes that are compatible with > > > those given to non-widget components or do I have to style each widget > > > individually? > > > > Many thanks, > > > Bill --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

