Hi Matt,
The idea is to capture server's response when online and then, when
offline, to query the local database (that is synchronized with
server's database) and show captured file (exactly the same that was
shown before, when online) BUT  with required new data.
For example:
1. Client queries server for users, that for instance, live in US.
Server responses and the client captures and shows the result.
2. The network goes down and the app works now offline
3. The client ,now, queries for users that live in France
4. The app detects offline mode and queries the local database that is
synchronized.
5. The app shows the captured file in step 1 but showing the users
that live in France, not in US

Is it possible to do step 5 with Gears? How? Can I modify a captured
HTML file and modify it to change the content of a table to show some
different data?

thanks for your help

On 20 mayo, 21:56, Matt Penniman <[email protected]> wrote:
> Hi Steve,
>
> (disclaimer: I'm not a Google employee, just someone who's worked with
> Gears)
>
> I'm not entirely clear about the behavior you're looking for; what do
> you want to modify when offline?  The HTML of the page (this is easy
> to do with Javascript)?  Or the contents of images or banners (this is
> not so easy)?  Could you give us an example of the kind of response
> your application gives?
>
> It's probably possible to make that response look the same whether the
> user is online or offline, but there are several factors here...
>
> Thanks,
> Matt
>
> On May 19, 10:59 am, Steve Patrick <[email protected]>
> wrote:
>
> > Hi everybody,think I need your help...
> > I 've got an app that asks tha server for some information, then the
> > server queries a database and responses the client with the required
> > data. I would like to take my app offline, so my client now uses
> > Gears:has a local database synchronized with server's database, so,
> > when my app goes offline uses the local database and the app is able
> > to show the information requested.
> > That OK but, I want the user not to even realize that the app is
> > working offline when disconnected. I mean,  when disconnected I want
> > the same page look that when connected, not only getting requested
> > data, I want the same colors, images, banners that appear when
> > online...Is it possible to capture in aResourceStoreserver's
> > response and  then, when offline, query my local database and
> > automatically modify captured file with the new information to show?
> > Is there any other way to do that?
> > Thanks

Reply via email to