Return-Path: Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 55405 invoked by uid 500); 18 Aug 2003 14:00:08 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: docs@cocoon.apache.org Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 55320 invoked from network); 18 Aug 2003 14:00:07 -0000 Received: from dobit2.ugent.be (HELO dobit2.rug.ac.be) (157.193.42.8) by daedalus.apache.org with SMTP; 18 Aug 2003 14:00:07 -0000 Received: from allserv.UGent.be (allserv.ugent.be [157.193.40.42]) by dobit2.rug.ac.be (8.12.8/8.12.8) with ESMTP id h7IE06Zt024172 for ; Mon, 18 Aug 2003 16:00:06 +0200 (MEST) Received: from otsrv1.iic.rug.ac.be (otsrv1.iic.ugent.be [157.193.121.51]) by allserv.UGent.be (8.12.8/8.12.8) with ESMTP id h7IE05MT001334 for ; Mon, 18 Aug 2003 16:00:05 +0200 (MEST) Received: from otsrv1.iic.rug.ac.be (localhost [127.0.0.1]) by otsrv1.iic.rug.ac.be (8.11.6/8.11.6) with ESMTP id h7IE05x02221 for ; Mon, 18 Aug 2003 16:00:05 +0200 Date: Mon, 18 Aug 2003 16:00:05 +0200 Message-Id: <200308181400.h7IE05x02221@otsrv1.iic.rug.ac.be> From: stevenn@outerthought.org To: docs@cocoon.apache.org Subject: [WIKI-UPDATE] LenyaDemo GettingStartedWithFlow Mon Aug 18 16:00:05 2003 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Page: http://wiki.cocoondev.org/Wiki.jsp?page=LenyaDemo , version: 24 on Mon Aug 18 13:46:23 2003 by 204.128.192.72 - 2003.08.18: down, "Bad gateway" errors + 2003.08.18: down, "Bad gateway" errors\\ ? ++ Page: http://wiki.cocoondev.org/Wiki.jsp?page=GettingStartedWithFlow , version: 38 on Mon Aug 18 13:45:39 2003 by DerekH - ? ---------------------------------- + + ? ------------- ---------------- + src="org.apache.cocoon.selection.XPathExceptionSelector"> + ? ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + class="org.apache.cocoon.components.flow.InvalidContinuationException"/> ? ^ + + - var random = Math.round( Math.random() * 9 ) + 1; ? -- + var random = Math.round( Math.random() * 9 ) + 1; - var hint = "No hint for you!" ? -- + var hint = "No hint for you!" - var guesses = 0; ? -- + var guesses = 0; - while (true) { ? -- + while (true) { - sendPageAndWait("guess.jxt", { "random" : random, "hint" : hint, "guesses" : guesses} ); ? ---- - - + sendPageAndWait("guess.jxt", {"random" : random, "hint" : hint, "guesses" : guesses}); - var guess = parseInt( cocoon.request.get("guess") ); ? ---- + var guess = parseInt( cocoon.request.get("guess") ); + - guesses++; ? ---- + guesses++; - if (guess) { ? ---- + if (guess) { - if (guess > random) { ? ------- + if (guess > random) { - hint = "Nope, lower!" ? -------- + hint = "Nope, lower!" - } else if (guess < random) { ? ------ + } else if (guess < random) { - hint = "Nope, higher!" ? ------ + hint = "Nope, higher!" - } else { ? ------ + } else { - break; ? ------ + break; - } - } ? -- + } + } - sendPage("success.jxt", {"random" : random, "guess" : guess, "guesses" : guesses} ); ? -- + sendPage("success.jxt", {"random" : random, "guess" : guess, "guesses" : guesses} );