Data storage method and device
AssigneeAdvanced New Technologies Co., Ltd.
InventorLi He
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a data storage method and device, wherein the method comprises: invoking a local storage interface of a browser, and storing application data to a storage space under a domain name corresponding to a current page, the domain name supporting a generic domain name; when the storage space under the domain name is insufficient to store the application data, creating at least one iframe, each iframe loading a proxy page corresponding to a sub-domain name under the domain name; and storing remaining application data in an additional storage space corresponding to the at least one sub-domain name. The method allows the local storage of a browser to meet the data storage demand of various capacities.
Claims17
A data storage method, comprising:
- invoking a storage interface of a browser, and storing application data associated with displaying a page by the browser to a storage space under a domain name corresponding to the page, the domain name including a first root domain name;
- when the storage space under the domain name is insufficient to store the application data, creating at least one HTML frame (iframe) under a generic domain name that includes a second root domain name different from the first root domain name, each iframe loading one proxy page, each proxy page corresponding to one sub-domain name under the generic domain name, by:
- creating a first iframe, the first iframe loading a first proxy page, the first proxy page corresponding to a first sub-domain name under the generic domain name;
- and
- in response to determining that a first additional storage space corresponding to the first sub-domain name is still insufficient to store the remaining application data, creating a second iframe, the second iframe loading a second proxy page corresponding to a second sub-domain name under the generic domain name;
- and
- storing remaining application data in an additional storage space corresponding to the one sub-domain name.
One or more non-transitory computer-readable storage media, storing instructions executable by one or more processors to cause the one or more processors to perform operations comprising:
- invoking a storage interface of a browser, and storing application data associated with displaying a page by the browser to a storage space under a domain name corresponding to the page, the domain name including a first root domain name;
- when the storage space under the domain name is insufficient to store the application data, creating at least one HTML frame (iframe) under a generic domain name having a second root domain name different from the first root domain name, each iframe loading one proxy page, each proxy page corresponding to one sub-domain name under the generic domain name, by:
- creating a first iframe, the first iframe loading a first proxy page, the first proxy page corresponding to a first sub-domain name under the generic domain name;
- and
- in response to determining that a first additional storage space corresponding to the first sub-domain name is still insufficient to store the remaining application data, creating a second iframe, the second iframe loading a second proxy page corresponding to a second sub-domain name under the generic domain name;
- and
- storing remaining application data in an additional storage space corresponding to the one sub-domain name.
A data storage system, comprising a processor and a non-transitory computer-readable storage medium coupled to the processor and having instructions stored thereon, the instructions being executable by the processor to cause the processor to perform operations comprising:
- invoking a storage interface of a browser, and storing application data associated with displaying a page by the browser to a storage space under a domain name corresponding to the page, the domain name including a first root domain name;
- when the storage space under the domain name is insufficient to store the application data, creating at least one HTML frame (iframe) under a generic domain name having a second root domain name different from the first root domain name, each iframe loading one proxy page, each proxy page corresponding to one sub-domain name under the generic domain name, by:
- creating a first iframe, the first iframe loading a first proxy page, the first proxy page corresponding to a first sub-domain name under the generic domain name;
- and
- in response to determining that a first additional storage space corresponding to the first sub-domain name is still insufficient to store the remaining application data, creating a second iframe, the second iframe loading a second proxy page corresponding to a second sub-domain name under the generic domain name;
- and
- storing remaining application data in an additional storage space corresponding to the one sub-domain name.
Dependencies are inferred from the claim text.