Method and apparatus for generating a drop-down list

A technology of options and elements, applied in the field of drop-down list generation methods and devices, can solve the problems of single display style of selected elements, ununiform display styles, unstable terminals, etc., and achieve the effect of unified display styles and increased terminal stability.

Active Publication Date: 2015-10-07
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the problem that the display style of the selected element in the layout file is single and cannot be unified with the display style of other elements in the webpage, and the addition of drawing code and event processing logic in the browser kernel affects other webpage elements, resulting in terminal instability. The embodiment of the invention provides a method and device for generating a drop-down list

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 and apparatus for generating a drop-down list
  • Method and apparatus for generating a drop-down list
  • Method and apparatus for generating a drop-down list

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0027] Please refer to figure 1 , which shows a method flowchart of a method for generating a drop-down list provided by an embodiment of the present invention. The method for generating a drop-down list can be applied to a terminal including a browser, and the terminal can be a smart TV, a smart phone, or a tablet computer, etc. . The method for generating the drop-down list includes:

[0028] Step 101, acquiring the attribute information of the selection element carried in the web page information;

[0029] The selection element is a select element, and the browser can obtain the select element by parsing the webpage information. Among them, the attribute information of the select element is CSS (Cascading Style Sheets, Cascading ...

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 discloses a method and apparatus for generating a drop-down list, belonging to the field of computer technology. The method comprises: obtaining the attribute information of a select element carried by webpage information; drawing the select element on a system control according to the attribute information, and obtaining the drop-down list; adding the drop-down list to a webpage that corresponds to the webpage information for displaying. The apparatus comprises: an information acquiring module, a list drawing module and a list displaying module. The method and apparatus herein address the problem of nonconformity between the display style of the select element in a layout file, generated upon drawing the drop-down list by using a composition file, and the display style of other elements of the webpage due to the singleness of the display style of the select element, and the problem of instability of the terminal caused by the impact imposed upon other webpage elements by adding a drawing code and an event handling logic to a rendering engine. By means of the method and apparatus, the conformity of the display styles of each element of the webpage is achieved and the stability of the terminal is increased.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for generating a drop-down list. Background technique [0002] A drop-down list is a list that can be pulled down to reveal options hidden in the list. When the drop-down list is activated, the terminal displays each option included in the drop-down list, and the user can select one or more options from the displayed options. [0003] The prior art provides two methods for generating a drop-down list. The first method for generating a drop-down list includes: the browser in the terminal obtains the select element in the web page; reads the display style of the selected element defined in the typesetting file; The display style and selected elements generate a layout file; add the layout file to the web page for display. Wherein, the attribute information of the selection element is defined in the display style, and the attribute information includes the wi...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/0482G06F9/44G06F17/30
Inventor 方敏
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products