Don't forget - you have one more t2-ism, besides comment which you can try to play with: label
See how far you can push these; On Tue, Dec 16, 2008 at 3:48 PM, Fran <[email protected]> wrote: > > On Dec 16, 9:17 pm, Fran <[email protected]> wrote: > > it is rather limited as HTML tags are escaped rather than > > passed through, so I'm limited to just text. > > I also want to add a 'Help' button with tooltip (as Help text can be > > too long to place within the comment field) > > I guess I'll have to investigate using jQuery to replace the content > > to what I need... > > Aha, I can use the inbuilt functions :) > This works: > db.cr_shelter.name.comment=SPAN("*",_class="req") > Not as nice as having it within the same TD as the input box, but > still fine for avoiding having to write custom HTML per-view. > > Now then, now to work on getting the tooltip populated from within the > same comment field as the JS (don't want to have to pull it down from > the DB using JSON as this adds extra compelxity & a key Web2Py usecase > is simplicity...) > NB Having an in-built functon for this called via a > db.table.field.help=""seems like a very useful addition to the > framework... > > F > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

