[Javascript] Scriptaculous Auto.Completer and "current" parameters

Michael Borchers list at tridemail.de
Wed May 7 06:27:44 CDT 2008


If you want to add parameters to be parsed you can do it by adding them to the 'parameters' option.

http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter

F.e. I have an input field customers_id = 1, I simply add: { customersID: $F('customers_id') }

But since my Autocompleter is loaded at the beginning by
new Ajax.Autocompleter(id_of_text_field, id_of_div_to_populate, url, options);the class always parses the same customers_id, the one from the beginning, which always is '1'.Even if I change the input field (f.e. '2') '1' is parsed as a value.The idea behind this is logical since '1' was the value when the class was initiated.I could initiate a new class every time the autocompleter is supposed to be fired, f.e. by an onfocus event.But in this case the old class continues to fire and the HTTPRequest will multiply themselves.Is there a way to destruct the old class or to pass parameters "correctely", always parsing the true "current" value?
-- 
MfG
Michael Borchers
Tridem GmbH
http://www.tridem.de
mailto: borchers at tridem.de
Tel.: 0491 / 96 06 71 63
ICQ: 322766923
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20080507/c6fef3ba/attachment.htm>


More information about the Javascript mailing list