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
javascript ajax


source to share


No one has answered this question yet

Check out similar questions:

527
XmlHttpRequest error: Origin null is not allowed Access-Control-Allow-Origin
4
Getting message from exception thrown by ASP.NET MVC controller action called from jQuery ajax
4
Client library or AJAX Control toolbox? - ASP.NET
3
upload ajax toolkit fileupload
3
How to prevent "Unable to get property value" dir ": object is null or undefined" when loading pages in IE9
2
jquery ajax not working despite successful json response
1
How to avoid errors when manipulating with unknown object / function input
1
Server-side or client-side Ajax tooling validations?
0
Errors in AJAX Toolkit JS files after upgrade?
0
Ajax Toolkit client requisition



All Articles
Loading...
X
Show
Funny
Dev
Pics