Novel usability solution method for HTML5 mobile client storage

A mobile client and solution technology, applied in the field of mobile web development, can solve problems such as inability to directly store and obtain non-string data such as objects and arrays, information storage in plain text, browser incompatibility, etc. Compatible and unsupported, guaranteed data security, easy to operate effects

Inactive Publication Date: 2017-11-17
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the development and use of Web Storage, it still has some shortcomings and deficiencies, mainly including the inability to directly store and obtain non-string data such as objects and arrays; the method of traversing all data is more complicated; information is stored in plain text; partial browsing device incompatibility, etc.

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
  • Novel usability solution method for HTML5 mobile client storage
  • Novel usability solution method for HTML5 mobile client storage
  • Novel usability solution method for HTML5 mobile client storage

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention will be further described below in conjunction with the accompanying drawings.

[0036] The present invention performs secondary encapsulation on existing getItem and setItem of Web Storage, and provides more concise and efficient get and set methods. This method can directly store and retrieve JavaScript data types including but not limited to strings, effectively making up for the defect that native methods cannot directly store data types other than strings;

[0037] Provides methods for Web Storage traversal. Traversing the stored data in Web Storage is feasible, but it is complicated and redundant. Through this method, the stored data can be directly traversed and reversely traversed;

[0038] The hash encryption algorithm of the key and the encryption and decryption algorithm of the value can be configured globally. Information stored in plain text may be data that does not involve user privacy, but it also brings great insecurity to the we...

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 present invention discloses a novel usability solution method for an HTML5 mobile client-side storage. The method includes the following steps that: a JavaScript library is encapsulated, an API capable of operating a Web Storage is provided, data that a user needs to store are serialized; a character string which is obtained after the serialization is encrypted; and the Web Storage is called to store the encrypted information, so that post-storage key-value pairs are obtained. With the novel usability solution method of the invention adopted, non-string type character data such as objects and arrays can be directly stored and acquired; a method for conveniently traversing all the stored data is provided; data security is ensured through encryption setting; and the problem of the incompatibility of a browser with the Web Storage and the problem of the incapability of the browser to support the Web Storage can be solved.

Description

technical field [0001] The invention relates to the technical field of mobile web development, in particular to a solution for usability encapsulation and compatibility of storing WebStorage and Cookie on a mobile HTML5 client. Background technique [0002] With the rapid development of the mobile Internet and the official release of the HTML5 standard, the mobile Internet has entered a period of steady development, and HTML5 technology has been widely promoted and applied. Among them, HTML5 provides the Web Storage API, which enables the browser to use a Cookies store key / value pairs in a more intuitive way. A cookie is a piece of data sent by the server to the user's browser and stored on the browser. It will be carried and sent to the server when the browser makes a request next time, but cookies are not suitable for storing large amounts of data because they are created by each Requests to the server are passed, which makes cookies slow and inefficient. [0003] Web St...

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): H04L29/08H04L29/06
CPCH04L63/0435H04L63/0442H04L67/02H04L67/34
Inventor 王鑫孔帅彭世伟
Owner SICHUAN CHANGHONG ELECTRIC 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