Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

openDatabase support



Safari 3.1 now supports the property "window.openDatabase" in JavaScript. 
There's an example page for this feature here:

<http://webkit.org/misc/DatabaseExample.html>


When using a WebKit-application that is not Safari to access the 
same page, I get an error message because the database could not 
created.

The problem is that 

    if (window.openDatabase) {

is not undefined or NULL, indicating that the openDatabase feature is 
available, but creating the database will nevertheless fail:

    db = openDatabase("NoteTest", "1.0", "Database API example", 200000);

here "db" is always undefined or NULL.

So I assume that there must be some new additional API which must be
used to add or enabled the database feature in WebKit Applications.

Is this API already available, or where can I get information about 
how to implement the database feature? Or should this work without any 
additional code?


Also it might be a bug in WebKit that "window.openDatabase" is not undefined 
or NULL when the openDatabase() doesn't work. I think when openDatabase() 
doesn't work window.openDatabase should be undefined or NULL.

-- 
Alexander Clauss

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.