[web2py] Re: how to redirect from ajax [closed]

2012-03-28 Thread weheh
OK, this issue is now put to bed. Thank you all for your help. P.S. -- what this issue has taught me touches on what pbreit said in another thread about the hazards of bypassing wonderful web2py built-in auth login/logout facilities when you choose the route of auth by dialog. My approach, has

[web2py] Re: how to redirect from ajax [closed]

2012-03-28 Thread weheh
P.P.S. As I was saying about compressing the site down to one page ... the real reason why I was having to do this contortion with redirect is because I HAVEN'T compressed the site down to one page. It's actually more like 2 or 3 pages. When I have a little more time, I will compress it down to

[web2py] Re: how to redirect from ajax [closed]

2012-03-28 Thread Anthony
If you want to build a single-page app, you might also consider options like AngularJS http://angularjs.org (supported by Google) and batman.jshttp://batmanjs.org(by Shopify). They move templating to the client, so your server just delivers the initial page (i.e., the whole app, including JS

[web2py] Re: how to redirect from ajax [closed]

2012-03-28 Thread weheh
I took a look at Angular's page. Looks interesting and might be more concise, BUT I can do it all in web2py already. It's mostly a matter of sight design -- we all use some jQuery these days, anyway. Retrofitting an existing set of pages to reduce them to a 1-pager is exponentially harder than

[web2py] Re: how to redirect from ajax [closed]

2012-03-28 Thread Anthony
On Wednesday, March 28, 2012 12:07:35 PM UTC-4, weheh wrote: I took a look at Angular's page. Looks interesting and might be more concise, BUT I can do it all in web2py already. Not sure what you mean by do it all, but certainly web2py alone cannot do all of what Angular does (even with