Re: [Flow] Going back and forth with continuations

2002-12-16 Thread Ovidiu Predescu
On Monday, Dec 16, 2002, at 08:55 US/Pacific, Christopher Oliver wrote: Ovidiu Predescu wrote: On Sunday, Dec 15, 2002, at 23:59 US/Pacific, Ugo Cei wrote: Ovidiu Predescu wrote: One solution would be to define a pseudo-continuation, just after you finish the function initialization code

Re: [Flow] Going back and forth with continuations

2002-12-16 Thread Christopher Oliver
Ovidiu Predescu wrote: On Sunday, Dec 15, 2002, at 23:59 US/Pacific, Ugo Cei wrote: Ovidiu Predescu wrote: One solution would be to define a pseudo-continuation, just after you finish the function initialization code, which could be referred from the View page template. Something like: fun

Re: [Flow] Going back and forth with continuations

2002-12-16 Thread Ovidiu Predescu
On Sunday, Dec 15, 2002, at 23:59 US/Pacific, Ugo Cei wrote: Ovidiu Predescu wrote: One solution would be to define a pseudo-continuation, just after you finish the function initialization code, which could be referred from the View page template. Something like: function myFunc() { var a;

Re: [Flow] Going back and forth with continuations

2002-12-15 Thread Ugo Cei
Ovidiu Predescu wrote: One solution would be to define a pseudo-continuation, just after you finish the function initialization code, which could be referred from the View page template. Something like: function myFunc() { var a; // Long initialization code here startForm(); // Creates a

Re: [Flow] Going back and forth with continuations

2002-12-15 Thread Ovidiu Predescu
On Saturday, Dec 14, 2002, at 12:33 US/Pacific, Ugo Cei wrote: Christopher Oliver wrote: In this case to go back to the beginning you don't need a continuation. You can just call the function again. Which wouldn't work if you have some code at the beginning of the function that is to be exe

Re: [Flow] Going back and forth with continuations

2002-12-14 Thread Ugo Cei
Ovidiu Predescu wrote: The value "2" for the "select" attribute is because it looks like using "1" actually refers to the "current" continuation and not the "previous" one as I thought initially. Am I correct and is this a "feature" or a "bug"? I don't see how "1" could refer to the current c

Re: [Flow] Going back and forth with continuations

2002-12-14 Thread Ugo Cei
Christopher Oliver wrote: In this case to go back to the beginning you don't need a continuation. You can just call the function again. Which wouldn't work if you have some code at the beginning of the function that is to be executed only once. Ugo ---

Re: [Flow] Going back and forth with continuations

2002-12-13 Thread Ovidiu Predescu
On Friday, Dec 13, 2002, at 21:46 US/Pacific, Christopher Oliver wrote: Ugo Cei wrote: I've tried to implement this use case in a flowscript like the following: function foobar() { // Note the use of the "new style" function names sendPageAndWait("showform", {}); // Collect request par

Re: [Flow] Going back and forth with continuations

2002-12-13 Thread Ovidiu Predescu
Hi Ugo, On Friday, Dec 13, 2002, at 08:18 US/Pacific, Ugo Cei wrote: Dear flow gurus, suppose I have an application that implements the following workflow: 1. Present the user a form to be filled. 2. When the user submits the form, present him a confirmation page, with two buttons: "Confirm"

Re: [Flow] Going back and forth with continuations

2002-12-13 Thread Christopher Oliver
Konstantin Piroumian wrote: From: "Ugo Cei" <[EMAIL PROTECTED]> It seems to me that Christian's version is more correct conceptually, it allows to perform additional actions when user clicks "Go back", while in your version the flow engine will automatically return the flow to the pervious st

Re: [Flow] Going back and forth with continuations

2002-12-13 Thread Christopher Oliver
Ugo Cei wrote: I've tried to implement this use case in a flowscript like the following: function foobar() { // Note the use of the "new style" function names sendPageAndWait("showform", {}); // Collect request parameters here sendPageAndWait("askforconfirmation", { /* ... field values .

Re: [Flow] Going back and forth with continuations

2002-12-13 Thread Konstantin Piroumian
From: "Ugo Cei" <[EMAIL PROTECTED]> > Christian Haul wrote: > > Interesting. Why not: > > > > function foobar() { > >// Note the use of the "new style" function names > >var response = null; > >do { > >sendPageAndWait("showform", {}); > >// Collect request parameters he

Re: [Flow] Going back and forth with continuations

2002-12-13 Thread Ugo Cei
Christian Haul wrote: 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 value

Re: [Flow] Going back and forth with continuations

2002-12-13 Thread Christian Haul
On 13.Dec.2002 -- 05:18 PM, Ugo Cei wrote: > Dear flow gurus, > > suppose I have an application that implements the following workflow: > > 1. Present the user a form to be filled. > > 2. When the user submits the form, present him a confirmation page, with > two buttons: "Confirm" and "Go back

[Flow] Going back and forth with continuations

2002-12-13 Thread Ugo Cei
Dear flow gurus, suppose I have an application that implements the following workflow: 1. Present the user a form to be filled. 2. When the user submits the form, present him a confirmation page, with two buttons: "Confirm" and "Go back" 3a. If the user presses "Confirm", perform some job (e.g