Hello,

I would suggest taking a look at the gearpad sample application. There
are some flags that you set on the local server to check whether it's
offline enabled, I think... (been awhile since I looked at the
example)

http://code.google.com/apis/gears/sample.html

You'll need to setup some kind of application server (non-gears) that
can give you a true server response (as if there was no Gears layer).
I'm not sure what other people recommend, but I usually use apache
httpd.

Hope this helps.

On May 28, 7:42 am, nightingale1785 <[email protected]> wrote:
> I read the google gears documents. But I still have too many questions
> on my mind.
>
> I still dont understand how to make Ajax applications work offline?
>
> How do we cache the Ajax response?
>
> As far as I understand,  when any ajax request is given from the
> application,
>
> 1. Initialize gears.
>
> 2. Try to get the response from the local server. (How do we put that
> in the local server? Can we give Ajax URL request in the manifest.json
> to be cached?)
>
> 3. If not available, Give the server request.
>
> Is this the way it works?
>
> I know Its a dumb question . Some one please answer. I am lost!

Reply via email to