Webkit implements HTML5 client database storage-

Source: Internet
Author: User
The development of TML5 is in full swing. All the technical staff are thoroughly studying and trying to master this technology. Webkit implements the HTML5 client database storage ......,. The development of HTML5 is in full swing. All technical staff are thoroughly studying and trying to master this technology. Webkit implements the HTML5 client database storage. Let's take a look at how Webkit is implemented!

The currently planned HTML5 standard has many exciting features that we would like to implement in Webkit. One of these features is that we think it can bring enough surprises to the browser at present-this is not even a standard, that is, the client database storage. So in the last few weeks, I have implemented it with andresca and xenon!

The client database storage interface allows Web applications to store structured local data through SQL, a media that many Web developers are already familiar.

These interfaces are asynchronous and Use callback functions to process database query results.
The callback function that defines a simple usage is roughly as follows:

Var database = openDatabase ("Database Name", "Database Version ");

Database.exe cuteSql ("SELECT * FROM test", function (result1 ){
// Do something with the results
Database.exe cuteSql ("drop table test", function (result2 ){
// Do some more stuff
Alert ("My second database query finished executing! ");
});
});

Here are examples of how to use these interfaces in a real situation. We will try to record the development of things.

This preliminary function has some known defects that do not conform to the specifications. However, this is the foundation and the best way for people to truly use this feature to explore their next work needs!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.