Hi,

Using Cocoon 2.1.4-dev.

my attempt to write a wizard style sequence in Woody is (roughly) as below. Can anyone 
confirm I'm on the right track, or if I'll get performance problems later, for 
instance?

function mywizard{


var f1 = form.load("form1_model.xml");
var f2 = form.load("form2_model.xml");
var f3 = form.load("form3_model.xml");

var step=1;

while(step){

        switch(step){

                case 1:
                        f1.showForm;
                        step=2;
                case 2:
                        f2.showForm;
                        if (submitId = previous){
                                step=1;
                        }else{
                                step=3;
                        }
                case 3:
                        f3.showForm;
                        if (submitId = previous){
                                step=2;
                        }else{
                                step=null;
                                cocoon.sendPage("success");
                        }

        }

}       

}


Problem: from success page, if user hits Back button on browser, the continuation is 
still alive. How can I fix this?
Qu: I've noticed elsewhere syntax such as 

var k = form.showForm...
k.invalidate();

what exactly does this do?

TIA for any help
James

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to