Hi Massimo, Thanks for your quick repsonse but I still haven't managed to get the tooltip visible. I tried pretty much every possible combination that I could think of with no success. Now my code looks this :
{{if request.args[0]=='login':}} <p> login page</p> <script> $(document).ready(function(){ $('#users_email').tooltip("Please enter your email here"); $('#auth_users_password').tooltip("Your designated password goes here"); }); </script> {{pass}} "#users_email" is the input field ID that the form automatically generates. I also tried it according to your code ("tootip" instead of "tooltip"; bottom "<script>" instead of "</script>"; "#auth_<input ID>" instead of "#<input ID>" ) but nothing worked. There's no tooltip text showing up whatsoever. I even checked the project's custom css, but there were no explicit positioning attributes that could have hidden the generated text. Would you recommend to explicitly code the forms or is there other feature of web2py that I'm missing ? Cheers, Cristian On May 16, 6:03 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > Hi Christian, > > assuming the controller is > > def user(): return dict(form=Auth()) > > the view is views/default/user.html (you have to create it). The forms > are generated in gluon/tools.py (you should not change this). > > In user.html you add at the bottom something like: > > {{if request.args[0]=='register':}} > <script> > $(document).ready(function(){ > $('#auth_user_first_name').tootip("....."); // note every INPUT > field has an ID}); > > <script> > {{pass}} > > On May 16, 7:42 am, Cristian Andrei <cristian.r.and...@gmail.com> > wrote: > > > Hello, > > > I'm taking part in developing an application by using Web2Py. We got > > to a point where we want to customize some forms that are > > automatically exposed. > > > Case in hand, user authentication with the help of the AUTH class. We > > used the tutorial found > > athttp://mdp.cti.depaul.edu/examples/default/tools#authentication. > > > I would be most interested in adding a Jquery form tooltip to each > > textarea (some help text to be shown whenever the user enters some > > data in the textarea) in the exposed urls : > > *http://locahost:8000/application/default/user/register > > *http://locahost:8000/application/default/user/login > > *http://locahost:8000/application/default/user/logout > > *http://locahost:8000/application/default/user/verify_email > > *http://locahost:8000/application/default/user/profile > > *http://locahost:8000/application/default/user/change_password > > *http://locahost:8000/application/default/user/retrieve_password > > *http://locahost:8000/application/default/user/groups > > but the problem is that I cannot find any piece of code for any of > > those forms. > > > Do you guys have any idea on how can that be achieved ? > > > Thanks a million, > > Cristian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---