No-refreshing linkage menu

Source: Internet
Author: User
Analyze several common online linkage menus Algorithm Then, the complexity, efficiency, and space are compromised.
1. Static linkage, suitable for infrequently updated data, such as provincial/municipal linkage menus
2. Data Binding: Use a data source for binding and display.
A. dataset/datatable/datacollect Data Source
B. XML Data Source
3. XMLHTTP reads data from XML files or WebServices
Currently, static linkage models and simple production scripts have been completed. If you are interested, you can encapsulate them as DOTNET controls.

The above is a static demo, and a simple demo can be generated dynamically below.
Note: Because the script generated is not optimized and recursion is used, it is recommended to generate a 2-7 demo. If it is too large, ie will lose response! However, the generated script has no problems and has good performance.

NOTE 2: Unfortunately, the sample is not used as a sawtooth array: <. the generated script consists of two parts: Data Definition and function definition. In actual use, the script is placed in a JS, and only 2nd script segments must be retained on the page. This can greatly reduce the number of bytes used by the option in the SELECT statement for multiple levels, and reduce the page transmission pressure.

Enter the level you want


  

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: info-contact@alibabacloud.com 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.