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

Method and device for achieving off-line application

An offline and application technology, applied in the computer field, can solve the problems of weak network cache capacity, limited, and inability to cache application data, etc., and achieve the effect of smooth offline services

Active Publication Date: 2014-09-24
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide a method and device for realizing offline applications, aiming at solving the problem of limited cache capacity in the prior art when the network is weak or the network is interrupted, and it is impossible to cache more application data, so that continuous offline application data cannot be provided. service problem

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 device for achieving off-line application
  • Method and device for achieving off-line application
  • Method and device for achieving off-line application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 It is a flowchart of the implementation of the method for realizing offline application provided by Embodiment 1 of the present invention, and is described in detail as follows:

[0026] In S101, when the browser is offline, send an Ajax request to the Ajax cache according to the HTML5 application access request;

[0027] In S102, obtain the data required to run the HTML5 application returned by the Ajax cache according to the Ajax request;

[0028] In this embodiment, the data corresponding to the HTML5 application program stored in the local Ajax cache may adopt the following method: when the browser is in an online state, pre-read the data required to run the HTML5 application program from the WEB server through the js program , and store the data through Ajax cache, that is, according to the HTML5 application program currently used by the user, the js program judges the data needed to run the HTML5 application program, and according to the judgment result,...

Embodiment 2

[0049] Figure 4 It shows the structural diagram of the device for realizing offline application provided by Embodiment 2 of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown. The device can be a software unit, hardware unit built in the mobile terminal unit or a combination of soft and hard units.

[0050] The devices include:

[0051] The sending unit 41 is used to send the Ajax request to the Ajax cache according to the HTML5 application access request when the browser is offline;

[0052] An acquisition unit 42, configured to acquire the data required for running the HTML5 application returned by the Ajax cache according to the Ajax request;

[0053] The running unit 43 is configured to run the HTML5 application program according to the data required for running the HTML5 application program.

[0054] Optionally, the device also includes:

[0055] The pre-reading unit 44 is configured ...

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 is applicable to the field of computer technology, and provides a method and a device which are used for achieving off-line application. The method comprises the steps as follows: when a browser is in an off-line state, an Ajax request is sent to an Ajax buffer according to an HTML5 application program visiting request, the Ajax buffer is acquired according to the data returned by the Ajax request, required by operating the HTML5 off-line application, and the HTML5 application program is operated according to the data required by operating the HTML5 application program. According to the method and the device for achieving the off-line application, the HTML5 off-line application and the Ajax buffer are combined and used, as a result, the buffer space of the off-line application is infinitely great, much application data can be buffered, and smoother off-line service is provided.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a method and device for realizing off-line applications. Background technique [0002] With the increasing popularity of mobile terminals and the continuous development of HTML5 technology, browsing the Internet through mobile terminals has become more convenient. Therefore, the frequency of use of mobile terminals is also increasing, but the current mobile network itself still cannot meet the needs of users at any time. Especially in mobile scenarios, when a mobile terminal encounters a weak network or a network terminal, the network will not be able to provide users with complete services or be unusable, resulting in cut-off and unsmooth user experience. [0003] The existing technical solutions deal with the above-mentioned weak network or network interruption situation by pre-caching the data of the application program that needs to be accessed. When the network...

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/46
CPCG06F16/9574
Inventor 龙海建
Owner TENCENT TECH (SHENZHEN) CO LTD
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