Hello everyone,
I'm using an conventional method and it's working as always. Here is
the code:
new Autocompleter.Local('item', 'update', ArrayResource[0], {});
:))
Thank you for your time,
Umut
On May 30, 12:06 pm, phpist <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> I want to set array index which script.aculo.us is looking for
> autocompletion. Here is sample:
>
> ------------------------------------------------------------------------------------------------------------
> var ArrayResource = new Array();
> ArrayResource[0] = "Fruits";
> ArrayResource[0][0] = "Apple";
> ArrayResource[0][1] = "Banana";
> ArrayResource[1] = "Names";
> ArrayResource[1][0] = "Claire";
> ArrayResource[1][1] = "Peter";
>
> new
> Autocompleter.Local('geniusAutocompleter1','geniusAutocompleterUpdate1',
> ArrayResource, { fullSearch: false, partialSearch: false, autoSelect:
> true } );
> ------------------------------------------------------------------------------------------------------------
>
> As you know, in this method, Autocompleter object is using only root
> elements -Fruits, Names- for autocompletion. How can i set it to
> include Apple and Banana or Claire and Peter?
>
> Thank you for your time.
> Umut
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---