3 messages in com.googlegroups.google-gears[google-gears] Re: Background Server ...
FromSent OnAttachments
Martin16 Apr 2008 02:35 
Martin16 Apr 2008 04:38 
Ben Lisbakken16 Apr 2008 12:30 
Subject:[google-gears] Re: Background Server Sync using WorkerPool
From:Martin (mjdg@gmail.com)
Date:04/16/2008 04:38:28 AM
List:com.googlegroups.google-gears

Ok, i see I can use XMLHTTPrequests and timers in workerpool since gears 0.2. However, it says "Gears HttpRequest provides most of the features of XmlHttpRequest except for the ability to access the response as an XML DOM object". This means, if the response is an XML DOM, I can not traverse the tree and store the data in the local database?

Wow could I do this?

I would like to implement a background sync using WorkerPool.

However, I guess this is not possible, right? WorkerPool can't perform XMLHTTPrequests and have to call the parent instead to retrieve Data. However, the parent can't pass the retrieved DOM back to the WorkerPool to perform DB updates etc.

Or am I missing something?

I don't want to let the parent do the DB update. Would be nice to have this working in the background. Don't you think this functionality would be required in the workerpool?

Thanks for your help and any suggestion.