s:select + ajax issue

2007-10-01 Thread Pablo Vázquez Blázquez
Hi everybody! Anyone knows why this code results in an increasing number of threads to RefreshTree action when I use the selector?? script type=text/javascript dojo.event.topic.subscribe(/submitSelectorForm, function(data, type, e) { if (type==before) { //do something

Re: s:select + ajax issue

2007-10-01 Thread Dave Newton
--- Pablo Vázquez Blázquez [EMAIL PROTECTED] wrote: Anyone knows why this code results in an increasing number of threads to RefreshTree action when I use the selector?? Because your submit button listens to the published topic of the select? script type=text/javascript

Re: s:select + ajax issue

2007-10-01 Thread Pablo Vázquez Blázquez
I want to call RefreshTree whenever I change the option in the select menu. So, I´m simulating a submit with an onchange event (or that´s what I would like to). What´s wrong? Dave Newton escribió: --- Pablo Vázquez Blázquez [EMAIL PROTECTED] wrote: Anyone knows why this code results in

Re: s:select + ajax issue

2007-10-01 Thread Pablo Vázquez Blázquez
Well, I have found the solution (at least, my solution). I must destroy topics before publishing it. Pablo Vázquez Blázquez escribió: I want to call RefreshTree whenever I change the option in the select menu. So, I´m simulating a submit with an onchange event (or that´s what I would like