On Dec 28, 12:36 pm, notabene <ni...@bjerre.net> wrote: > I need 2 patterns - and I believe they would be usefull in general: > - a popup page - attached by an edit or search button to a field - > which can be customized to supply the field-content.
I have a popup button next to my T2 form fields to provide a Help bubble. I do this by adding jquery.tooltip to web2py_ajax_t2.html: <script src="{{=URL(r=request,c='static',f='scripts/ jquery.dimensions.js')}}" type="text/javascript" charset="utf-8"></ script> <script src="{{=URL(r=request,c='static',f='scripts/ jquery.cluetip.js')}}" type="text/javascript" charset="utf-8"></ script> <link href="{{=URL(r=request,c='static',f='styles/ jquery.cluetip.css')}}" rel="stylesheet" type="text/css" media="screen" charset="utf-8" /> $('#tooltip').cluetip({activation: 'click',splitTitle: '|',closePosition: 'bottom'}); I then add these in my model: db.table.field.comment=A(SPAN ("[Help]"),_class="popupLink",_id="tooltip",_title=T("Help Title|This is what this field is for.")) I'm not sure if this is what you want exactly... 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 web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---