Christian Haul wrote:
Because I'd find it nicer and more elegant not having to rely on an extra variable or parameter and use a loop. Continuations are so nice ;-).Interesting. Why not:function foobar() { // Note the use of the "new style" function names var response = null; do { sendPageAndWait("showform", {}); // Collect request parameters here sendPageAndWait("askforconfirmation", { /* ... field values ... */ }); response = input("request-param","confirm"); // or request.getParameter("confirm"); } while (response == null); sendPage("thankyou", {}); }
Ugo
--
Ugo Cei - http://www.beblogging.com/blog/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]