Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 60804 invoked by uid 500); 30 Mar 2002 05:31:12 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 60795 invoked by uid 500); 30 Mar 2002 05:31:12 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 30 Mar 2002 05:31:11 -0000 Message-ID: <20020330053111.6859.qmail@icarus.apache.org> From: ovidiu@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript system.js X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ovidiu 02/03/29 21:31:11 Modified: src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript system.js Log: Implement forwardTo. Revision Changes Path 1.5 +14 -1 xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript/system.js Index: system.js =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript/system.js,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- system.js 25 Mar 2002 07:38:01 -0000 1.4 +++ system.js 30 Mar 2002 05:31:11 -0000 1.5 @@ -21,7 +21,20 @@ lastContinuation = k; }); - cocoon.diplayAllContinuations(); + return kont; +} + +function forwardTo(uri, bizData) +{ + var kont; + callCC(function(k) { + kont = new WebContinuation(cocoon, k, lastContinuation); + cocoon.forwardTo(uri, bizData, kont); +// print ("created continuation with id " + kont.id); + suicide(); + lastContinuation = k; + }); + return kont; } ---------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-cvs-help@xml.apache.org