You have described my problem nearly perfect, with one difference:
There is a path from index to sub1, from sub1 to sub2 and from sub2 to
sub3, every step should use the LOAD-function. Every step adds some
information. After the last step the whole information should be sent to
index2 (using session variables), but the last page (index2) should be a
new page with a new view. Therefore I have tried a "redirect".

No, ajax_trap=False did not work, I have tried it - but thank you for the
proposal.
The book says:

*ajax_trap is ignored *and assumed to be True if ajax=True.

2012/7/27 Niphlod <[email protected]>

> I've not tested it, but there's a misunderstanding here I think.
>
> Say that "URL() gets the extension from the current request if not
> specified" is true. This is generally "wanted" because links in a LOADed
> portion of the frame must not contain the whole layout.
>
> But I think you want a LOADed form to submit and redirect to a "full" page
> (i.e. with fully loaded layout). This means to load in a portion of the
> page a form and when submit redirect to another page, not "retaining" the
> one that loaded the form in the first place.
> i.e. in the browser address bar you want to jump from /index - where /sub2
> is loaded - to /sub3 that will redirect to /index2
> vs
> being stuck to /index
>
> This is not the default behaviour and is managed by the ajax_trap
> parameter, that is assumed to be True for ajax=True.
>
> Did you try your code with ajax=True and ajax_trap=False ?
>
>
> On Friday, July 27, 2012 8:43:07 PM UTC+2, mweissen wrote:
>>
>> I have tried:
>> redirect(URL('index2',vars={'**text':request.vars.text},
>> extension=False))
>> Sorry, the same result - index2 is "loaded".
>>
>>
>> 2012/7/27 Bruno Rocha <[email protected]>
>>
>>> put extension=False in URL
>>>
>>> redirect(URL('index2',extensio**n='html',vars={'text':request.**vars.text},
>>> extension=False))
>>>
>>>
>>>
>>  --
>
>

-- 



Reply via email to