Hi I am new on prototype and scriptaculos then I have a basic problem I guess.
I try to catch through a handler the value selected in a "autocompleter.local" list. I succeed to get the initial written characters but not the complete string. For example I write 'ja' into field then I select the 'jason' value listed I shall never get 'jason' only 'ja' but strange: if I use an alert() between two set instruction I get the right value then. Thank in advance for your answer CDesforges. Prototype v 1.7 Scriptaculos 1.9.0 on Fedora 11 x64 These are elements of code function foo(event) { var val=this.value; alert(val); // 'ja' var val=this.value; alert(val); // 'jason' } function foo2(event) { var val=this.value; alert(val); // 'ja' } var source=['json','jason']; new Autocompleter.Local('field1', 'field1_list', source, {fullSearch:true }); $('field1').observe('change', foo); -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.