Hi all, Visit the webpage: http://www.capellan2000.000space.com/test05.html and download the stack: http://capellan2000.000space.com/autocomplete_names.zip
I am looking for ideas to make better the code of these autocomplete fields. Notice that in this example, both fields have the same names list, but actual stack will use two different lists. Steps to use this stack: 1) Click in the first top field, (names list field is show) and start typing the name. According you type, the names list scrolls to the name whose first letters match. (This handler is a variation of a script posted by Klaus Major and archived in Ken Ray's site) Notice that, just like some web browsers do, you could keep writing and the field will a) show a new name from the list or b) leave the field, as no more match are found (I like this part) Sometimes while writing, you could see in the name list field the name that you want to type. In this case, you could use the bottom arrowkey to "jump" towards the names list field: on arrowkey tKey if tKey is "down" then click at (left of fld id 1004 + 20),(top of fld id 1004 + 10) else pass arrowkey end if end arrowkey Effectively, i send a synthetic "Click" to activate the names list field. Using the command "Focus" do not work as expected:focus on fld id 1004 In fact, when i use "focus" the field does not allow to select new names using the arrowkeys (up and down), but sending a click on the field, allows to use arrowkeys in the names list field. Thanks in advance for your help. Alejandro -- View this message in context: http://www.nabble.com/Autocomplete-field-tp26098204p26098204.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
