Hi,
I have a listbox that I am populating client side from a list of items that users entered. Initially there are no listbox items, but I set the height of the listbox to 200px. When I click inside the listbox when there are still no items , it displays a javascript error 'undefined' is null or not an object. I believe it happens on the _activateItem client side event of the listbox, but Im not sure how to disable it when there are no items in the list.
Is there a way to trap the _activeitem event on client side or disable it when the list of items = 0 ?
Thanks,
rei
I have a listbox that I am populating client side from a list of items that users entered. Initially there are no listbox items, but I set the height of the listbox to 200px. When I click inside the listbox when there are still no items , it displays a javascript error 'undefined' is null or not an object. I believe it happens on the _activateItem client side event of the listbox, but Im not sure how to disable it when there are no items in the list.
Is there a way to trap the _activeitem event on client side or disable it when the list of items = 0 ?
Thanks,
rei