You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Steinar Jonsson <sj...@online.no> on 2003/12/01 01:50:29 UTC

Re: Nested flowscripts

On Friday 28 November 2003 09:58, Christian Hoofe wrote:
> From: Steinar Jonsson <sjonsson <at> online.no>
>
> >Subject: Nested flowscripts
> >Newsgroups: gmane.text.xml.cocoon.user
> >Date: Wed, 26 Nov 2003 20:40:13 +0100
> >
> >I have a flowscript that does a sendPageAndWait( request ),
> >and the request happens to start a second flowscript.
> >
> >When that second flowscript has completed its work,
> >how do I return to where the first one left off?
>
> Try:
>
>     // save the actual continuation object
>     var scriptCont = cocoon.continuation;
>
>    cocoon.sendPageAndWait(...);
>
> 	// reset the original continuation object
> 	cocoon.continuation = scriptCont;
>
> This worked for a Woody-Form call instead of  cocoon.sendPageAndWait() in
> my flowscript program. This is a result of trial and error may be someone
> knows a better solutions. I found nothing in the documentation.
>

Couldn't get that to work, cocoon.continuation is undefined.

Anyway, found another way to solve my problem. The first script now 
calls the second directly, without going through sendPageAndWait().

Thanks for trying to help.

Regards.
Steinar Jonsson

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org