Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for setting cascading menu of XML based on Javascript

A menu and cascading technology, applied in the field of web development, can solve problems such as linkage display, and achieve the effect of convenient interaction, easy analysis and processing, and simple operation

Inactive Publication Date: 2018-08-03
G CLOUD TECH
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

, Solve the problem of cascading data linkage display on the front end of the web

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for setting cascading menu of XML based on Javascript

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] See figure 1 Shown, the present invention a kind of method based on the XML setting cascade menu of Javascript, specifically comprises the following several steps:

[0021] Step 1: Use Javascrip to parse the XML object data, you need to load this XML file, and Javascrip loads and parses the XML file through XMLDOM;

[0022] Step 2: Use Javascrip to obtain the first-level menu node value of the Web front end according to document.getElementById;

[0023] Step 3: According to the value of the front-end first-level menu node, go to the XML document to access the node according to the method of using xmlDocument.selectSingleNode and getElementsByTagName(xPath), and you can directly search and obtain the corresponding second-level menu node through xPath;

[0024] Step 4: Use the second-level menu node parameters obtained in the first step to create an option node on the Web page according to document.createElement("option");

[0025] Step 5: Add the created option node to...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of Web development, and specifically relates to a method for setting a cascading menu of XML based on Javascript. The method comprises: using the Javascript to analyze xml object data, obtaining a first stage menu of the front end of a Web, searching a corresponding second stage menu node; and creating an option node and adding the node to a second-stage select node. The method is simple in operation, and solves a problem of linkage display of cascading data on the Web front end, and is suitable to be used for browsers in different versions, and isespecially suitable for the Web field of Javascript development.

Description

technical field [0001] The invention relates to the technical field of Web development, in particular to a method for setting cascading menus based on Javascript XML. Background technique [0002] At present, various web pages or software often present relevant information to users through a menu interface with a fixed size in the user operation interface. When the content length of the presented information exceeds the size of the menu interface, in order to display the complete information content, various existing web pages or software usually solve the problem by adding scroll bars or opening cascading menus. The so-called cascading selection menu refers to a menu selection mode that adopts multi-level content display in the user operation interface. Contents of the invention [0003] The technical problem solved by the present invention is to provide a method for setting cascading menus based on Javascript XML. , Solve the problem of cascading data linkage display o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/38G06F8/30
CPCG06F8/315G06F8/38
Inventor 何龙泉季统凯张远世庞毅齐兆勇关班记黄博
Owner G CLOUD TECH