IIRC, sendPage forks the execution, so if you set the variable right after the sendPage() call, is posible the global variable is setted before the sendPage() call finish.

Hmm.... please explain, what are you trying to do. Perhaps there is another way to accomplish that.

Best Regards,

Antonio Gallardo.

Johannes Becker wrote:

Hi,

I've got a function.

function myFunc(){
  ...
  cocoon.sendPage("xxx", {
     myVariable: myVariable,
  });
}

Right after this cocoon.sendPage I want to set a global variable (in my case
myVariable) "automatically":
myVariable = null;

But how can I do that?

Thanks
Jonny



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

Reply via email to