>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.

 




___________________________

  Christian Hoofe
  Email  [EMAIL PROTECTED]
___________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to