Hi,
i'm just getting started with gears and am trying to create a local
database to start using. i'm getting an error when trying to run the
code (below) saying "could not create database: unknown object." i'm
not sure why this is happening, as i have gears installed, the samples
run fine, and the code is pretty much the same as what the
documentation states. any ideas?
thanks
here's the relevant portion of code:
function init()
{
var success = false;
if (window.google && google.gears) {
try {
db = google.gears.factory.create('eurisko.database');
if (db) {
db.open('eurisko');
db.execute('create table if not exists notes' +
' (title varchar(255), content text, tags varchar
(255), timestamp int)');
success = true;
}
} catch (ex) {
alert('Could not create database: ' + ex.message);
}
}
}