Onder Arslan a écrit :
> but auto completer still running.
> can i how to delete, dispose or drop them.
> thanks a lot sorry my english
I'm sorry to say Autocompleter.Base and its subclasses lack a
destroy/dispose method, which you can find on other Scripty features.
Technically, auto-completion plays with two events on your element: blur
and keydown. If you don't have other registered handlers for these, you
could trick the system into disabling auto-completion by doing this
(uses Prototype 1.6, hence assumes script.aculo.us 1.8):
$('yourElementId').stopObserving('blur').stopObserving('keydown');
If your element originally allowed browser-based completion, you might
also want to add to this chaining:
.setAttribute('autocomplete', 'on');
Then, you can explicitely delete the autocompleter object if you want to
(otherwise the garbage collector will do that for you later on).
'HTH
--
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---