Here is a post that goes into what I am looking for: http://groups.google.com/group/web2py/browse_thread/thread/70797300effc1252/a7d91c558ae8cbf3?lnk=gst&q=serve+html#a7d91c558ae8cbf3
To make full use of a lot of things I need access to the html resulting after it has been parsed in VIEW. I need the same HTML that is served to the browser, except in a URL format such as /app/ controller/function.html, rather than the current /app/controller/ function.html. I could be wrong though, so if someone can get shadowbox javascript library to work with web2py, especially the iframe embedded windows, that would be awesome. At the moment I can't find any information anywhere that deals with this (including the official manual). Cheers On Apr 6, 11:17 pm, waTR <roman.goldm...@gmail.com> wrote: > I have switched to shadowbox, and everything finally works (incase > anyone is interested in doing something similar). > > However, I cannot seem to load an iframe with it. Is there a way to > have web2py serve an html file such as function.html rather than > controller/function ? > > Has anyone tested web2py with any javascript library that can do > embedded windows? > > Cheers. > > On Apr 6, 9:30 pm, waTR <roman.goldm...@gmail.com> wrote: > > > That's the whole thing, I am trying to tie it to the event of the > > window loading, not a click. > > > I have it working when it comes to a click event, but I can't figure > > out the code to get it to run on a window load event. > > > I just need the window to pop-up with an iframe pointing to google.com > > as soon as the window loads. > > > On Apr 6, 5:14 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > $(document).ready(function(){$('#....').click()}) > > > > replace .... with the ID of the item you are supposed to click on. > > > > On Apr 6, 7:09 pm, waTR <roman.goldm...@gmail.com> wrote: > > > > > 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 -~----------~----~----~----~------~----~------~--~---