PDA

View Full Version : Combobox


hysterio
03-16-2005, 10:30 AM
Is it possible to determine when the select-list of the combobox is opened (and user is looking into all possible values) and when select-list is closed (user has made his/her choice)

Thanks in advance

putts
03-16-2005, 11:54 AM
There's no "onDropDownOpened" or anything but then onChange is triggered when a selection is made (either by clicking the drop down and selecting an option or by just pressing keys until the desired value is in there and then tabbing out)

The onFocus would be your best for when they open the drop down because even though you're not sure the drop down is "open" they are definitely on the field.

Can I ask why you need this ability?

hysterio
03-17-2005, 03:43 AM
i have a form where user can submit the form with the enter-key (was functional request)

but when the user selects a value in the dropdown-list with his mouse and the combo is still open, and hits then the enter-button, then the value he choose is not submitted, but the value that was selected before his selection

if you understand what i mean

putts
03-17-2005, 09:18 AM
So, if I'm reading this scenario properly, they've clicked open a drop down but have not yet selected an option, hit the enter button and complain because the combobox within which they had not yet selected a value was not processed????

If they've selected a value and then hit, the value should be there. If they haven't selected a value then why do they complain that it's not there???

A little confused.

hysterio
03-17-2005, 11:47 AM
no, they didn't complain. it was something i was wondering if it could be done, but it seems it can't be done