質問

I just updated to the December 2013 release of the ajaxtoolkit and now, in IE, when I load one of my pages I get:

Error: Unable to get property 'queue' of undefined or null reference

I've looked through my code for the word 'queue', but it's not there.

EDIT:

I made a list of all the types of ajax controls on the page:

  1. TextBoxWatermarkExtender
  2. FilteredTextBoxExtender
  3. TabContainer
  4. TabPanel
  5. MutuallyExclusiveCheckBoxExtender
  6. CollapsiblePanelExtender
  7. RoundedCornersExtender
  8. ToggleButtonExtender
  9. PopupControlExtender
  10. ToolkitScriptManager
役に立ちましたか?

解決

tl;dr - this is a bug introduced in the December 2013 release of the AJAX Control Toolkit. I would strongly recommend moving away from the toolkit, and using something simpler and lighter - either hand-rolling things with jQuery, or using a framework like jQuery UI.

Or, you could possibly roll back to a previous version of the toolkit (use the links in the box on the right to view previous releases).


Looks like this is a bug in the AJAX Control Toolkit (or possibly in the Sizzle CSS Selector Engine, which is used by the toolkit).

You can actually repeat this error if you go to the AJAX Control Toolkit Sample site's Tab sample page. When I visit it in IE8, I get a similar error:

AJAX error

Notice, though, that the error is in "CombineScriptsHandler.axd". The file says the following right above the line that throws the error:

/*!
 * Sizzle CSS Selector Engine
 * Copyright 2012 jQuery Foundation and other contributors
 * Released under the MIT license
 * http://sizzlejs.com/
 */

And the specific statement that generates the error is here:

n._tabIndex=i.owner.get_tabs().length;

Of course, that's from the minified JS, so it's hard to say what it's doing.

The problem has also been reported on the Toolkit's codeplex page:

http://ajaxcontroltoolkit.codeplex.com/workitem/27650

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top