I am using trunk version Version 1.82.1 (2010-08-04 18:57:33) and the code you sent me works perfectly.
Either I do not understand the problem or this is a browser issue. What os and browser do you use? Massimo On Aug 7, 2:16 pm, Julius Minka <[email protected]> wrote: > No, redirection doesn't work for me. > Last released version I used before was Version 1.82.1 (2010-08-05 > 01:00:12) > > I got current trunk this way: > hg clonehttps://web2py.googlecode.com/hg/web2py078a > requesting all changes > adding changesets > adding manifests > adding file changes > added 764 changesets with 2180 changes to 733 files > updating to branch default > 588 files updated, 0 files merged, 0 files removed, 0 files unresolved > > It identifies itself as Version 1.82.1 (2010-08-04 18:57:33). > Attached you can find the application as I typed it from your email. > > Julius > > V Sobota, 7. august 2010 o 10:58 -0700, mdipierro napísal(a): > > > There is a problem with URL. Please check trunk and see if it solves > > the problem for you: > > > This works for me > > > def index(): > > return dict() > > > def test1(): > > form=SQLFORM.factory(Field('name')) > > if form.accepts(request.vars,session): > > url = URL('test2',extension='html') > > response.headers['web2py-component- > > command']='document.location="%s"' % url > > raise HTTP(303,**response.headers) > > redirect(URL('test2')) > > return dict(form=form) > > > def test2(): > > return dict(h=H1('hello world')) > > > with default/index.html > > > {{extend 'layout.html'}} > > This is a test > > {{=LOAD('default','test1.load',ajax=True)}} > > > > web2py.app.test.w2p > 100KViewDownload

