Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Toby
Andrew Madu wrote: > You leave code for a while, and you forget everything...well I do!! We all do :-) That's what comments are for, to an extent. > > I'm also not sure that is what you want to do. > > Why? My mistake, that part is right. Toby -

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
On 05/07/06, Toby <[EMAIL PROTECTED]> wrote: Andrew Madu wrote:> Problem solved!!Isn't this what solved your problem, according to your sitemap?bookmark.id}" type="hidden" name="continuation-id"/> That plus the fact that I moved the continuation  command before the form creation. But yes, the above

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Toby
Andrew Madu wrote: > Problem solved!! Isn't this what solved your problem, according to your sitemap? Toby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
TobyI'm also not sure that is what you want to do. Why? regardsAndrew

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Toby
Andrew Madu wrote: > > > > > > > > I think the call should be I'm also not sure that is what you want to do. Toby -- Signed/encrypted mail welcome. GPG/PGP Key-Id: 0x15C5C2EA - To unsub

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
On 05/07/06, Ard Schrijvers <[EMAIL PROTECTED]> wrote: Why are you actually creating your own bkm? cocoon.sendPageAndWait already returns a continuationAs stated in the cocoon wiki, the reason is:'createWebContinuation Function [WebContinuation] createWebContinuation() Creates a new "book

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
Problem solved!!The idea is to place createWebContinuation before the form definition section!! var bkm = cocoon.createWebContinuation();var form = new Form("forms/CreditCardDetails.xml"); form.showForm("CreditCardDetails.xml", {"userGlobal":userGlobal}); var model = form.getModel();var bizData =

RE: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Ard Schrijvers
Why are you actually creating your own bkm? cocoon.sendPageAndWait already returns a continuation. Can you try removing the bkm var and just do a    cocoon.sendPageAndWait("orderFail.xml");   Try the following:   var finished = false;do {    var k = cocoon.sendPageAndWait("orderFail.x

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
Hi,I may be wrong here but that sure looks like overkill to me. I am generating a continuation using: var form = new Form("forms/CreditCardDetails.xml"); form.showForm("CreditCardDetails.xml", {"userGlobal":userGlobal}); var model = form.getModel();var bizData = {"fname" : model.fname, "lname" : mo

RE: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Ard Schrijvers
I mean that the following piece of code has the behavior you want I think:   var comingBack = false; var bookmark = cocoon.createWebContinuation(ttl); // Attach the form to the continuation so that we can access by just knowing the continuation id bookmark.setAttribute("form", this.form); i

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
Ard,sorry, I still don't get it!! In the context of:var bkm = cocoon.createWebContinuation();..cocoon.sendPageAndWait("orderFail.xml", {bookmark:bkm, "OrderDetails":neworder, "transaction_message": response.getCVV2Code()});how do I implement :Form.prototype.sendFormAndWait = function(){}?regard

RE: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Ard Schrijvers
Hello Andrew,   take a look at Form.prototype.sendFormAndWait in  Form.js in the cocoon code. Think you will get the idea if you look at that one,   Regards Ard Hi,I am having some problems implementing a continuation bookmark. Basically a user enters some form details and submits the