Bascially, I am trying to have the jquery.DOMWindow window open to a
URL as soon as the window loads, rather than based on a click event.

Anyone know how to do this?



On Apr 6, 4:29 pm, waTR <roman.goldm...@gmail.com> wrote:
> I have also tried using the jquery.DOMwindow.js script. It is a
> revised thickbox script. Nothing seems to be working...whats going on.
> Not even the example line-for-line on the script website works...
>
> http://swip.codylindley.com/DOMWindowDemo.html
>
> If someone gets the script to work with web2py I would LOVE to know
> how you did it.
>
> Thanks.
>
> On Apr 6, 1:04 pm, waTR <roman.goldm...@gmail.com> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to