Hi,
I am new to gear, We are using gear in our web application were flow
is ...
When ever user assign with some task user will get message attached
with static html file, In that html we are showing work assign to user
in html form once user submit we are creating local database and
saving data to local database, But the problem is when we are not
getting google.gears Object ...
function init() {
var success = false;
if (window.google && google.gears) {
try {
db = google.gears.factory.create('beta.database');
if (db) {
db.open('localApprDB');
db.execute('create table if not exists user (name varchar
(100), user_req_desc varchar(100), status varchar(100), timestamp
int)');
} catch (ex) {
setError('Could not create database: ' + ex.message);
}
}
if (!window.google || !google.gears) {
if(confirm("Gears is not installed. Do you want to install Gears
now ?")) {
location.href = "http:// gears.google.com/?action=install";
}
}
1.) google.gears object is coming null
2.) when location.href = "http:// gears.google.com/?action=install";
code executes than firefox is throwing some excecption.
Any Help Appreciated ...