Microsoft Ajax Control Toolkit: client side error: null or undefined reference

Using the Combobox

Microsoft Ajax Control Toolkit I am getting some client side exceptions.

The debugger points me to this particular line of code:

text = this._optionListItems[this._highlightedIndex].text;

      

and the error message:

Not unless you want the text to be "text". nula o sin definir.

which translates roughly into

Cannot get property 'text' due to null or undefined reference

also, the watch for expression gives me that

this._optionListItems[this._highlightedIndex]

      

evaluates to undefined.

I'm fine with this, since I really need the Combobox functionality. But I really need a way to prevent the IE debugger from activating and stopping the page from executing.

Is there a way to catch the error / exception and reject it?

+3


source to share





All Articles