Re: Re-rendering javascript in behavior

2010-06-29 Thread Jeremy Thomerson
Of course, you'll still have the issue that you are using a single global variable for multiple things on the page. On Tue, Jun 29, 2010 at 10:24 AM, Igor Vaynberg wrote: > the javascript contributions are filtered by the id given in the > second parameter, in your case: "pdcJS". since your ids

Re: Re-rendering javascript in behavior

2010-06-29 Thread Igor Vaynberg
the javascript contributions are filtered by the id given in the second parameter, in your case: "pdcJS". since your ids are constant only the first contribution makes it. using UUID.random() will fix it it as far as header contributions go. -igor On Tue, Jun 29, 2010 at 7:45 AM, Muro Copenhage

Re-rendering javascript in behavior

2010-06-29 Thread Muro Copenhagen
Hi, I have a small behavior that prevents doubleclick on buttons. It is added to Modal popups on a page. The problem i have is that if the Modal window appears twice on a page, the javascript variable value of the first popup is used. This is because i am using: response.renderJavascript(...); w