Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: CascadingDropDown infinite loop (with solution) [22942]

$
0
0
In the _setOptions method, there is a loop using "i" as the loop variable. However, there is no "var i" declaration, leaving it in the global scope. Inside this loop, the OnParentChange method may be called (based on the dependencies between drop down lists). In OnParentChanged, _setOptions is recusively called, and the global "i" iterator is reset to 0, iterated through to the number of entries in the child drop down box, and control returned to the _setOptions on the Parent drop down. If the number of options in the child is less than in the parent, this can cause an infinite loop since the parent drop down starts updating, triggers the OnParentUpdating, and has the loop iterator reset.

SOLUTION: add "var i;" statement at the beginning of the _setOptions method. I would happily make this fix myself, but I could not figure out what tool was being used to optimize and minify the debug javascript. If someone could let me know, it would be much appreciated.
Comments: I am still having this issue but with Safari and Chrome. Opened an issue: http://ajaxcontroltoolkit.codeplex.com/workitem/27317

Viewing all articles
Browse latest Browse all 4356

Trending Articles