AJAX Advance Tips & Tricks (1)

Source: Internet
Author: User

CascadingDropDown a flaw and solution in IE and Safari

Objective: AJAX Toolkit's cascadingdropdown is simple to use, but there is a noticeable performance flaw in IE and Safari, which is obvious when the data is large and the user selects options using the mouse wheel or keyboard up and down keys. This article describes how to resolve this problem by modifying the toolkit source code. (This issue should be more controversial, perhaps many people do not see it as a flaw, depending on the situation)

Problem Recurrence:

You can go to the AJAX Toolkit official display page to see: cascadingdropdown.aspx</p>

As shown in the following figure, when the mouse focus is on the parent list box, if you are using IE or safari, try using the mouse wheel, or the keyboard up and down key to replace the option, you will find that each time the parent list box options change the list box to update the options. This means that each change sends a WebService request to get a collection of list items in the Child list box!

However, under Firefox, we will find that when we try to replace the option with the mouse wheel, or the keyboard up and down key, the options in the Child list box are not updated until the parent list box loses focus.

Imagine that if the set of sub list options is large, the performance of cascadingdropdown in IE or Safari will be a very large loss.


I think this phenomenon is due to the different ways in which <select> onchange events are executed under IE or Safari and Firefox.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.