Bart Molenkamp wrote:

I don't believe that that is true. I've tried it, and it seems to behave
like these global vars (ie the rhino scope) is stored in the session.
I've tried this:

var count = 0;

function test() {
  count = count + 1;
  java.lang.System.out.println(count + " times");
}

When pressing the refresh button on my mozilla, it increases the
counter:
1 times
2 times
3 times
...

When opening a new tab, enter the url, it continues the counter:
5, 6, ... times

But when I open a new browser (e.g. IE) it starts at 1 again, while
pressing the refresh in mozilla continues the count (7, 8, ...). I think
that the two mozilla windows share the same session. This because my
site is secured, and I didn't have to login when opening the new tab,
while I did had to login when opening the url in IE (new browser, new
session).

So, for the original question, how "different" are the two browsers you
are using? I think there lies your "concurrent" problem.

the problem happens when I use two IE in the same machine, even though they use different sessions


with two IE in different machines there's no problem


HTH, Bart.


-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jorg Heymans
Sent: Wednesday, September 29, 2004 3:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Concurrent access to flowscript mixes variable content


 print("test [" + test + "]");
 test = form.lookupWidget("nameWidget").getValue();

^^^^^^ try declaring test locally here (ie "var test=...") IIRC declaring a var outside the sub makes it a global var.


--------------------------------------------------------------------- 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]




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



Reply via email to