Hi,

Google gear should be installed in your computer before calling the
functions of gear.

Your code should check first whether gear is installed or not

 (function() {
        if (window.google && google.gears) {
                var isToInstall = confirm('Google Gear is not istalled in your
brower. Do you want to install it to proceed ?')

            if(isToInstall)
                location.href = "http://gears.google.com/?
action=install&message=you need to install Google Grear to proceed";
            else
                return;
  }

and if it is installed then you can call the functions.

Thanks
Amit Kumar Verma


On Apr 28, 6:30 pm, riccardo <[email protected]> wrote:
> Hello
>
> I have declared  the 'gears_init.js' in my index.html. My index.html
> calls my main.js. In my main.js I create <code>var request =
> google.gears.factory.create('beta.httprequest');</code>
>
> What I get is:'google is not defined'. I can't get these gear-things
> together.  Mhmmm :-).
>
> Riccardo

Reply via email to