> Did you try the javascript debugger ?
> You should be able to trace the execution flow, look at the variables
> values and test conditions.
Yes I do. It behaves exactly as I want it to, but goes wrong in the
form.showForm(..) part. :-( I'll study it more closely and see if I can
really pinpoint the exact location where it goes wrong. Maybe that helps.
Thanks.
Bye, Helma
>
> --
> Olivier
>
> [EMAIL PROTECTED] wrote:
> > Guys,
> >
> > thanks for thinking along, but what I'd really like to do is:
> >
> > myFunction() {
> > success = false;
> > errmsg = "";
> > while (!success) {
> > try {
> > [something that also displays errmsg]
> > [check and throw error if necessary]
> > success = true;
> > }
> > catch (error) {
> > errmsg = "some error message"
> > success = false;
> > }
> > }
> > cocoon.sendPage([result]);
> > }
> >
> > rather than:
> >
> >
> >>>myFunction(){
> >>> try{
> >>> [something]
> >>> }
> >>> catch(error){
> >>> cocoon.sendPage([error message]);
> >>> return;
> >>> }
> >>> cocoon.sendPage([result]);
> >>>}
> >
> >
> > so basically I want to redisplay the page with an error
> message on it
> > until the user has done everything right.
> >
> > Bye and thanks, Helma
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]