Hi all, I am using a great floating window plugin for jQuery, however, I am not sure how to make it work with web2py. Note that in asking this question, I am not only trying to solve this problem, but to gain a better understanding of how web2py works, so please only propose web2py solutions. THICKBOX: http://jquery.com/demo/thickbox/
I was thinking of modifying response.flash or making a response.jswin to run the js code to open this thickbox window. Here is my code: CONTROLLER/root def index(): return dict() this controller doesn't need to do anything. CONTROLLER/user def login(): code to check if fields are empty when form is submitted, if they are, open a thickbox containing an iframe containing the contents from register.html. VIEW/root/index.html: <form action="{{URL(r=request, c='user', f='login')}}"> <input type="text" name="login"></input> <input type="submit" value="Sign-In"></input> </form> VIEW/user/register.html <h1>Please Register an Account</h2> <form action="{{URL(r=request, c='user', f='register')}}"> <input type="text" name="login"></input> <input type="text" name="name"></input> <input type="text" name="favorite_color"></input> <input type="submit" value="Register Me"></input> </form> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---