Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for generating browser page and terminal device

A technology for browser pages and terminal devices, applied in the field of data processing, can solve problems such as increased maintenance costs, inconvenience, and inflexible description methods, and achieve the effects of reducing maintenance costs, saving execution time, and improving execution efficiency.

Inactive Publication Date: 2014-01-29
SHENZHEN RUGUO TECH
View PDF1 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The WinJS template engine uses attribute interpretation tags to describe template information, which cannot flexibly express the information to be bound by the template, and is inconvenient to describe some logical operations, which will separate the logical operation information required by the template from the template description
This description is inflexible, inconvenient, and increases maintenance costs

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 system for generating browser page and terminal device
  • Method and system for generating browser page and terminal device
  • Method and system for generating browser page and terminal device

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0062] Example 1: Evaluating expressions using if / else logic

[0063] Adopt the description mode of the inventive method:

[0064]

[0065] The above code is briefly explained as follows: the id of the template is gridCellColumnTemplate, and the type is a template.

[0066]

[0067] If the exist variable in the Json data is true, it will output exist, otherwise it will output empty. For example, if exit is ture, the output content is: otherwise: .

[0068] Using the description of the existing WinJS method:

[0069]

[0070] The above code is briefly explained as follows: id is tplGridBodyCell, data-win-control is the data binding template of WinJS.

[0071]

[0072] The data binding object is className, the binding content is the Json variable exist, and the user callback processing method is: HistoryGridData.getBodyCellExistClass.

[0073] Logical operations also need to be additionally described as:

[0074]

example 2

[0075] Example 2: Using template nesting to describe expressions

[0076] If the main template wants to describe the information of each column in the two-dimensional table, and the sub-template wants to describe the information of the cells in each column, in the example of the present invention, the following association description can be performed by using template nested description expressions:

[0077]

[0078] This example solves the problem that the WinJS template engine cannot describe the associated information of the nested template, and the user does not need to write code to illustrate the associated relationship between the main template and the sub-template.

[0079] In order to clearly illustrate the characteristics of this example, the following is an example if the prior art separation description method is used for description:

[0080] Description of column template:

[0081]

[0082]

[0083] Description of cell templates in col...

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 system for generating a browser page based on HTML codes and a terminal device. The method for generating the browser page based on the HTML codes comprises the steps of obtaining template information from a remote server side, using the regular expression to analyze template grammar, dynamically generating a filling method required by a template according to the actual template content, using user data to execute the dynamically-generated template filling method, generating the browser page based on the HTML codes, and displaying the browser page based on the HTML codes. The invention further provides the system for generating the browser page based on the HTML codes and the terminal device. According to the method, system and terminal device for generating the browser page based on the HTML codes, the HTML codes are formed by dynamically generating the template and filling data into the template, the analyzing efficiency and the filling efficiency of the template are greatly improved, the arithmetic logic of the system is effectively improved, the arithmetic amount of the system is reduced, and the processing speed of the browser page is increased.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a method, a system and a terminal device for generating browser pages based on HTML codes. Background technique [0002] The template engine for web development is produced to separate the user interface from business data (content), and it can generate documents in a specific format, and the template engine for websites will generate a standard HTML document. The template engine can separate the interface and data of the (website) program, which greatly improves the development efficiency, and a good design also makes code reuse easier. [0003] The existing WinJS (Windows Library for Javascript) template engine technology is a set of technology provided by Microsoft that uses JSON (JavaScript Object Notation) data and HTML (Hypertext Markup Language, Hypertext Markup Language) templates to drive the generation of HTML code technology . [0004] The WinJS template engine uses at...

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): G06F9/44
Inventor 刘洋
Owner SHENZHEN RUGUO TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products