Not working in all browsers or just a specific one? Should use jsfiddle.net for code examples.
Are you using synchronous or async? Gafa On Dec 9, 11:23 am, FRamonTB <[email protected]> wrote: > Hello all, > > I did a MooTools script, that update a "select" element with AJAX, > like this: > myAjax.setOptions({update: this.select}); > > All works well. I see the web page with the right "options" charged > inside the "select". > > Nevertheless, after that I try to change the selected option like > this: > this.select.selectedIndex = index; > > And it doesn't works... > > but if I put an "alarm" statement between them it does !!! (the > selectedIndex is updated). > > So, this works: > myAjax.setOptions({update: this.select}); > alert(''); > this.select.selectedIndex = index; > > But this does't: > myAjax.setOptions({update: this.select}); > this.select.selectedIndex = index; > > It seems that the this.select is updated in the web page, but only > updates in the script code if I put the alarm statemen between them. > Please, help me to remove this annoying "alarm" statement. How could I > do to get this working without the "alarm"?
