CN103108035A - Application localization method and device based on web-based operating system (WEBOS) - Google Patents

Application localization method and device based on web-based operating system (WEBOS) Download PDF

Info

Publication number
CN103108035A
CN103108035A CN2013100175798A CN201310017579A CN103108035A CN 103108035 A CN103108035 A CN 103108035A CN 2013100175798 A CN2013100175798 A CN 2013100175798A CN 201310017579 A CN201310017579 A CN 201310017579A CN 103108035 A CN103108035 A CN 103108035A
Authority
CN
China
Prior art keywords
web
application program
inventory file
business datum
web application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013100175798A
Other languages
Chinese (zh)
Inventor
蒋赞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen ZTE Mobile Telecom Co Ltd
Original Assignee
Shenzhen ZTE Mobile Telecom Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZTE Mobile Telecom Co Ltd filed Critical Shenzhen ZTE Mobile Telecom Co Ltd
Priority to CN2013100175798A priority Critical patent/CN103108035A/en
Publication of CN103108035A publication Critical patent/CN103108035A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an application localization method and a device based on web-based operating system (WEBOS) and belongs to the WEB technical field. The method includes the following steps: storing business data applied by WEB locally as local resources; establishing a local off-line WEB application program; and loading the local resources during running of the off-line WEB application program. According to the application localization method and the device based on the WEBOS, the business data of the WEB application program are stored by a local database introduced by standard hypertext markup language (HTML) 5 and an inventory file off-line technology is adopted, and therefore the localized WEB application program can directly run to perform offline operation.

Description

The application localization method of Base on Web OS a kind of and device
Technical field
The present invention relates to the WEB technology, particularly application localization method and the device of a kind of Base on Web OS (Web-based OperatingSystem, network operating system).
Background technology
Local persistent storage is the aspect that the local client program is better than the WEB program always.For local application, operating system can provide a level of abstraction, and for the data of storing and obtaining specific to application program, for example the user arranges or run time behaviour.These values can be stored in registration table, ini file, and perhaps other where, and this depends on the realization of operating system.If local application need to be not only this locality storage of key-value pair form, also can use embedded database, file format or other a variety of solutions.
Yet the WEB application program has not just had these advantages.So the Cookie early stage at WEB arises at the historic moment, purpose is to store lastingly low volume data in this locality.But Cookie has three fatal shortcomings:
(1) Cookie can comprise into each HTTP request, and the WEB application program that therefore can slow down produces unnecessary repeating data;
(2) Cookie can comprise into each HTTP request, unless therefore whole application is all the SSL of use, otherwise the data that send on network just can not be encrypted;
(3) Cookie restricting data size is 4KB, although this has been enough to reduce the speed of application program, the size of 4KB sometimes can be had too many difficulties to cope with.
Summary of the invention
The features and advantages of the present invention are partly statement in the following description, perhaps can describe obviously from this, perhaps can learn by putting into practice the present invention.
Of the prior artly can not directly move the problem that localized WEB application program is carried out off-line operation for overcoming, the invention provides application localization method and the device of a kind Base on Web OS.
It is as follows that the present invention solves the problems of the technologies described above the technical scheme that adopts:
According to an aspect of the present invention, provide the application localization method of Base on Web OS a kind of to comprise the following steps: in the business datum of this locality storage WEB application, as local resource; Create off-line WEB application program in this locality; Load local resource during operation off-line WEB application program.
Preferably, the above-mentioned business datum of using at this locality storage WEB is specially: the business datum that adopts the local data library storage Application models of HTML5 standard.
Preferably, the above-mentioned off-line WEB application program that creates in this locality comprises following steps: create an online inventory file; Quote inventory file in browser page; Mime type on server is set.
Preferably, above-mentioned loading local resource comprises: the business datum of this locality being stored the WEB application reverts in buffer memory, and browser page loads resource from buffer memory.
The device that the invention provides the application localization of a kind of Base on Web OS comprises: business datum localization module, application program localization module and operation module, and wherein: the business datum that business datum localization module is used for using at this locality storage WEB is as local resource; Application program localization module is used for creating in this locality off-line WEB application program; The operation module loads local resource when being used for operation off-line WEB application program.
Preferably, above-mentioned application program localization module is included in line file inventory creating unit, browser setting unit and server setting unit, wherein: the lists of documents creating unit is used for creating an online inventory file, and the browser setting unit is used for quoting inventory file at browser page; The Servers installed unit is used for arranging the mime type on server.
Methods and apparatus according to embodiments of the present invention, business datum and the inventory file off-line technology of the local data library storage WEB Application models that employing HTML5 standard is introduced can directly move localized WEB application program and carry out off-line operation.
By reading specification, those of ordinary skills will understand feature and the content of these technical schemes better.
Description of drawings
Below by the reference accompanying drawing and in conjunction with example, the present invention is described particularly, advantage of the present invention and implementation will be more obvious, wherein content shown in accompanying drawing only is used for explanation of the present invention, and does not consist of the restriction of going up in all senses of the present invention, in the accompanying drawings:
Fig. 1 is the schematic diagram of the off-line WEB application architecture that provides of the embodiment of the present invention.
Fig. 2 is the application localization method flow diagram of a kind of Base on Web OS of providing of the embodiment of the present invention.
Fig. 3 is the modular structure figure of the application localization device of a kind of Base on Web OS of providing of the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Be the schematic diagram of the off-line WEB application architecture that provides of the embodiment of the present invention as Fig. 1, this system comprises html page, JavaScript element, CSS (Cascading Style Sheet, CSS), local data base and server, wherein:
Html page as the application program core, plays the model effect.It comprises data and (acquiescence) submission information that will show.The html element element of the page is to set hierarchical organization by HTML DOM (Document ObjectModel, DOM Document Object Model).The Client-initiated event produces a traditional request-response cycle, wherein has the page to load and carries out relevant JavaScript function.
The JavaScript element comprises the application controller function.The html element element is tied to the JavaScript function by event handler.JavaScript can pass through the HTML dom tree with useful UI (User Interface, interface, family) element access application, and inputs used as the data of computing.Result can be shown to the user by revising html page.
CSS describes html page and how to submit to.Omit the view task herein with reduction procedure.For this one-phase expansion, only use the acquiescence of html element element to submit behavior to.
The HTML5 standard is introduced the local data library storage.Be that browser provides embedded database, it can be accessed from JavaScript by treatment S QL inquiry.The business datum of Application models is stored in here.
WEBOS works offline in mobile WEB application program, and detects application program and when transfer to online or from transferring online off-line to, use the off-line application program from off-line, need to guarantee that all resources all can be buffered.Browser will always load all resources from buffer memory.
Be the application localization method flow diagram of a kind of Base on Web OS of providing of the embodiment of the present invention as Fig. 2, the method comprises the following steps:
S202, the business datum of using at this locality storage WEB are as local resource;
Particularly, the local data library storage that can adopt the HTML5 standard to introduce in this step, namely browser provides embedded database, can store the business datum of Application models and accesses from JavaScript by treatment S QL inquiry.
S204, create off-line WEB application program in this locality;
Preferably, can comprise following three steps in this step:
Create an online inventory file, the file name of enumerating loading at file gets final product;
Quote inventory file in browser page, as the HTML5 page with<! DOCTYPE html〉mark begins, by<html manifest=" website.manifest "〉inventory attribute in mark quotes inventory file;
Mime type on server is set, comprises: the mime type that arranges on server specifically comprises: store inventory file into the WEBOS side, provide inventory file with text/cache-manifest Mime type in server simultaneously.
As an embodiment, above-mentioned steps S202 and step S204 are not limited to precedence.
Load local resource when S206, operation off-line WEB application program.
When enabling the WEB application, will directly move off-line WEB and use, in the data reduction buffer memory of simultaneously off-line WEB being used, browser page loads resource from buffer memory.
Be the modular structure figure of the application localization device of a kind of Base on Web OS of providing of the embodiment of the present invention as Fig. 3, this device comprises:
Business datum localization module 10, the business datum that is used for using at this locality storage WEB is as local resource;
Particularly, the concrete business datum that is used for the local data library storage Application models of employing HTML5 standard of business datum localization module 10.
Application program localization module 20 is used for creating in this locality off-line WEB application program;
Operation module 30 loads local resource when being used for operation off-line WEB application program.
Particularly, directly move off-line WEB application program when enabling WEB, the business datum of simultaneously this locality being stored the WEB application reverts in buffer memory, and browser page loads resource from buffer memory.
Preferably, above-mentioned application program localization module 20 further is included in line file inventory creating unit 201, browser setting unit 202 and server setting unit 203, wherein:
Lists of documents creating unit 201 creates an online inventory file, enumerates the file name of loading in inventory file;
Browser setting unit 202 is quoted inventory file in browser page, can be specifically: the HTML5 page with<! DOCTYPE html〉mark begins, by<htmlmanifest=" website.manifest "〉inventory attribute in mark quotes inventory file;
Servers installed unit 203 arranges the mime type on server, stores inventory file into the WEBOS side, provides inventory file with text/cache-manifest Mime type in server simultaneously.
By mode and the device of the embodiment of the present invention, adopt the business datum of the local data library storage WEB Application models of HTML5 standard introducing, adopt the inventory off-line technology, can directly move localized WEB application program and carry out off-line operation.
Above with reference to the accompanying drawings of the preferred embodiments of the present invention, not thereby limit to interest field of the present invention.Those skilled in the art do not depart from the scope and spirit of the present invention, and can have multiple flexible program to realize the present invention, can be used for another embodiment to obtain another embodiment as the feature as an embodiment.The equivalence that all utilizations specification of the present invention and accompanying drawing content are done changes, all should be within interest field of the present invention.

Claims (10)

1. the method for the application localization of a Base on Web OS, is characterized in that, the method comprising the steps of:
In the business datum of this locality storage WEB application, as local resource;
Create off-line WEB application program in this locality;
Load local resource when moving described off-line WEB application program.
2. method according to claim 1, is characterized in that, the business datum of using at this locality storage WEB is specially: the business datum that adopts the local data library storage Application models of HTML5 standard.
3. method according to claim 1, is characterized in that, the described off-line WEB application program that creates in this locality comprises following steps:
Create an online inventory file;
Quote described inventory file in browser page;
Mime type on server is set.
4. method according to claim 3, is characterized in that,
Enumerate the file name of loading in described inventory file;
Described in browser page the described online inventory file of mark comprise: the HTML5 page with<! DOCTYPE html〉mark begins, by<html manifest=" website.manifest "〉inventory attribute in mark quotes inventory file;
The mime type that arranges on server specifically comprises: store inventory file into the WEBOS side, provide inventory file with text/cache-manifest Mime type in server simultaneously.
5. method according to claim 1, is characterized in that, described loading local resource comprises: the business datum of this locality being stored the WEB application reverts in buffer memory, and browser page loads resource from buffer memory.
6. the device of the application localization of a Base on Web OS, is characterized in that, this device comprises:
Business datum localization module, the business datum that is used for using at this locality storage WEB is as local resource;
Application program localization module is used for creating in this locality off-line WEB application program;
The operation module loads local resource when being used for moving described off-line WEB application program.
7. device according to claim 6, is characterized in that, described business datum localization module specifically is used for the business datum of the local data library storage Application models of employing HTML5 standard.
8. device according to claim 6, is characterized in that, described application program localization module is included in line file inventory creating unit, browser setting unit and server setting unit, wherein:
Described lists of documents creating unit is used for creating an online inventory file,
Described browser setting unit is used for quoting described inventory file at browser page;
Described Servers installed unit is used for arranging the mime type on server.
9. device according to claim 8, is characterized in that,
Described lists of documents creating unit specifically is used for: the file name of enumerating loading in inventory file;
Described browser setting unit specifically is used for: the HTML5 page with<! DOCTYPE html〉mark begins, by<html manifest=" website.manifest "〉inventory attribute in mark quotes inventory file;
Described Servers installed unit specifically is used for: store inventory file into the WEBOS side, provide inventory file with text/cache-manifest Mime type in server simultaneously.
10. device according to claim 6, it is characterized in that, described operation module specifically is used for: directly move off-line WEB application program when enabling WEB, the business datum of simultaneously this locality being stored the WEB application reverts in buffer memory, and browser page loads resource from buffer memory.
CN2013100175798A 2013-01-17 2013-01-17 Application localization method and device based on web-based operating system (WEBOS) Pending CN103108035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100175798A CN103108035A (en) 2013-01-17 2013-01-17 Application localization method and device based on web-based operating system (WEBOS)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100175798A CN103108035A (en) 2013-01-17 2013-01-17 Application localization method and device based on web-based operating system (WEBOS)

Publications (1)

Publication Number Publication Date
CN103108035A true CN103108035A (en) 2013-05-15

Family

ID=48315602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100175798A Pending CN103108035A (en) 2013-01-17 2013-01-17 Application localization method and device based on web-based operating system (WEBOS)

Country Status (1)

Country Link
CN (1) CN103108035A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544029A (en) * 2013-07-02 2014-01-29 Tcl集团股份有限公司 Web application engine system and implementation method thereof
CN104715025A (en) * 2015-03-03 2015-06-17 百度在线网络技术(北京)有限公司 Data storage method and device for offline Web application
WO2017107570A1 (en) * 2015-12-23 2017-06-29 北京大学 Mobile web caching optimization method based on html5 application caching
CN107463657A (en) * 2017-07-28 2017-12-12 腾讯科技(深圳)有限公司 File operation method and terminal
CN107817994A (en) * 2016-08-29 2018-03-20 北京雪球信息科技有限公司 The operation method of mobile terminal network application program
CN108132814A (en) * 2017-12-22 2018-06-08 平安养老保险股份有限公司 Page loading method, device, computer equipment and the storage medium of application program
CN110569465A (en) * 2019-08-27 2019-12-13 上海易点时空网络有限公司 Offline access method and device for client application program
CN110569467A (en) * 2019-08-27 2019-12-13 上海易点时空网络有限公司 offline access method and device for client application program
CN111367596A (en) * 2018-12-25 2020-07-03 阿里巴巴集团控股有限公司 Method and device for realizing service data processing and client
CN113873013A (en) * 2018-12-25 2021-12-31 创新先进技术有限公司 Offline packet reassembly method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523393A (en) * 2006-10-06 2009-09-02 微软公司 Locally storing web-based database data
CN102629200A (en) * 2012-03-02 2012-08-08 浪潮集团山东通用软件有限公司 Processing method for Web system off-line using
CN102779181A (en) * 2012-06-29 2012-11-14 广州市动景计算机科技有限公司 Browser off-line storage data processing method based on hypertext markup language (HTML) 5 and browser

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523393A (en) * 2006-10-06 2009-09-02 微软公司 Locally storing web-based database data
CN102629200A (en) * 2012-03-02 2012-08-08 浪潮集团山东通用软件有限公司 Processing method for Web system off-line using
CN102779181A (en) * 2012-06-29 2012-11-14 广州市动景计算机科技有限公司 Browser off-line storage data processing method based on hypertext markup language (HTML) 5 and browser

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544029A (en) * 2013-07-02 2014-01-29 Tcl集团股份有限公司 Web application engine system and implementation method thereof
CN104715025A (en) * 2015-03-03 2015-06-17 百度在线网络技术(北京)有限公司 Data storage method and device for offline Web application
WO2017107570A1 (en) * 2015-12-23 2017-06-29 北京大学 Mobile web caching optimization method based on html5 application caching
CN107817994A (en) * 2016-08-29 2018-03-20 北京雪球信息科技有限公司 The operation method of mobile terminal network application program
CN107463657B (en) * 2017-07-28 2018-08-17 腾讯科技(深圳)有限公司 File operation method and terminal
CN107463657A (en) * 2017-07-28 2017-12-12 腾讯科技(深圳)有限公司 File operation method and terminal
CN108132814A (en) * 2017-12-22 2018-06-08 平安养老保险股份有限公司 Page loading method, device, computer equipment and the storage medium of application program
CN111367596A (en) * 2018-12-25 2020-07-03 阿里巴巴集团控股有限公司 Method and device for realizing service data processing and client
CN113873013A (en) * 2018-12-25 2021-12-31 创新先进技术有限公司 Offline packet reassembly method and system
CN113873013B (en) * 2018-12-25 2023-06-16 创新先进技术有限公司 Offline package reorganization method and system
CN111367596B (en) * 2018-12-25 2023-06-23 阿里巴巴集团控股有限公司 Method and device for realizing business data processing and client
CN110569465A (en) * 2019-08-27 2019-12-13 上海易点时空网络有限公司 Offline access method and device for client application program
CN110569467A (en) * 2019-08-27 2019-12-13 上海易点时空网络有限公司 offline access method and device for client application program
CN110569465B (en) * 2019-08-27 2022-09-02 上海易点时空网络有限公司 Offline access method and device for client application program
CN110569467B (en) * 2019-08-27 2022-10-14 上海易点时空网络有限公司 Offline access method and device for client application program

Similar Documents

Publication Publication Date Title
CN103108035A (en) Application localization method and device based on web-based operating system (WEBOS)
US10572581B2 (en) System and method for web content presentation management
CN101771681B (en) Page display control method, server and system
CN102946442B (en) Based on the method and system of the file update issue that intelligence refreshes
JP2016511883A (en) Application programming interface for content curation
CN102184101B (en) Software application frame and development system thereof for smartphones
CN101997927A (en) Method and system for caching data of WEB platform
CN105045887A (en) Mixed mode cross-domain data interaction system and method
CN104657118A (en) Native + Web mixed mobile application achieving method and device
CN104935666B (en) A kind of method and system for mobile terminal viewing pdf document
CN104504160A (en) Excel document online batch write-in method based on SSH frame
CN104123157A (en) Method and device for customizing cross-platform business logic of mobile terminal
JP2016519346A (en) Structured document pagelet caching
CN103744845A (en) Method and system for WEB platform data caching
US20130036197A1 (en) Method and system for a mobile local server
CN103034496B (en) Based on the Locally-static portal generation method of template
CN102411625A (en) Progressive output display method and device
CN104113567A (en) Content distribution network data processing method, device and system
CN100492360C (en) Method and system for webpage generation
US10742764B2 (en) Web page generation system
CN103347069A (en) Method and device for realizing network access
CN103399776A (en) Creation method and system for reusable MOCK
Sun et al. The Exploration and Practice of MVVM Pattern on Android Platform
Kao et al. A cross-platform runtime environment for mobile widget-based application
CN104461509A (en) Information interaction framework and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130515

RJ01 Rejection of invention patent application after publication