thanks your answer but i can not use

 $('yourElementId').stopObserving('blur').stopObserving('keydown');

because i want to use autocompleter, i want to usage like his :

if($('cbox').value == true)
new Ajax.Autocompleter("txt","hint","data.aspx",{minChars: 5});
else
new Ajax.Autocompleter("txt","hint","other_data.aspx",{minChars: 5});

and cbox value change will dynamically when web site using.
i want to use sometimes data.aspx or other_data.aspx for completion data

thanks a lot, sorry my english i hope i could explain my problem
onder


2007/12/19, Christophe Porteneuve <[EMAIL PROTECTED]>:
>
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to