越来越空了google.gears对象脱机工作

问题描述:

当我是新来的齿轮,我们正在使用的齿轮在我们的web应用程序进行流 是...越来越空了google.gears对象脱机工作

当过用户的一些任务分配给用户将得到消息附 与静态HTML文件,在该HTML我们显示工作分配给用户 在HTML表格一旦用户提交我们正在创建本地数据库和 保存数据到本地数据库,但问题是我们不是 得到google.gears对象。 ...

function init() { 
var success = false; 
if (window.google && google.gears) { 
try { 
    db = google.gears.factory.create('beta.database'); 
    if (db) { 
     db.open('local'); 
     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. 齿轮已经安装在我的系统中。

  3. 上述代码在goole chrome中工作,意味着它在Chrome中查找google.gear对象。

任何帮助表示赞赏...

对不起,问题是我不包括gears_init.js,但比也有人用谷歌浏览器的工作...

包括后gears_init.js文件它工作正常...