Masking controls in Scriptaculous

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Masking controls in Scriptaculous

Joseph Blatter
hello list.
i was using the autocompleter and trying to limit the characters typed in the input box when there's no match, i.e. if I have the Smalltalk collection of classes and type "Ord", the autocompleter display

OrderedCollection
OrderedCollectionInspector
OrderedCollectionTest

but if i type "Orda", i would like to make impossible to type last letter "a", since there's no Smalltalk standard class which begins with "Orda". I want the SUAutocompleter to perform this kind of masking from the input of the user. I can use a selection list (select tag) with the predefined values, but don't want to preload all these values as my selection list can have too many items and the autocompleter let me customize this preloading a limited number of items.

i wonder if this is possible with Scriptaculous.

best regards

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

Reply | Threaded
Open this post in threaded view
|

Re: Masking controls in Scriptaculous

Lukas Renggli
> i wonder if this is possible with Scriptaculous.

This is certainly possible, but not from within Squeak alone. Very
likely you need to extend the JavaScript code. Have a look at the
documentation at

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

and -- what is probably more important -- at the JavaScript itself.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside