Thank you very much for your response.
I have since resolved the issue and unfortunately i didn't catch what
the problem was, it was not the 0 byte problem - ie it was only
downloading like x amount of file and then stopping, only ever a small
amount like 0 - 4 or 5 at most out of like 20 or so.
below is as best that i can describe what fixed the issue for me.
the actual "page" i am capturing is output from a web application i am
developing, one that needs to work offline if the connection fails. It
uses Extjs to control the view and periodically update a flex swf with
images / data. This update is done with teh extjs taskmanger which is
bascially hits a function every x amount of time that polls the server
to check if there is an update - if there is it triggers the gears local
server to update from a dynamically generated manifest. This is the
update function that i am using - it works now by the way:
var updateClentSide = function(refURL, tplId, panelId){
var date = new Date();
var timeStamp = date.dateFormat('U');
var STORE_NAME="scrviewTest"
var
MANIFEST_FILENAME='svn_corePHP/KFC/www/index.php?lander=digitalMenus.googleGears.getManifest&storeId='+Ext.Request.storeId+'&screenId='+Ext.Request.screenId+'&tplId='+tplId+'&vId='+timeStamp+'&panelId='+panelId;
// instantiate google gears
if (typeof(GEARS_localServer) == "object") {
var store =
GEARS_localServer.createManagedStore(STORE_NAME);
store.manifestUrl =
'index.php?lander=digitalMenus.googleGears.getManifest&storeId='+Ext.Request.storeId+'&screenId='+Ext.Request.screenId+'&tplId='+tplId+'&vId='+timeStamp+'&panelId='+panelId;
store.onerror = function(e){
alert(e);
}
// check for changes and capture files
store.checkForUpdate();
var refStore = GEARS_localServer.createStore('urlTest');
refStore.capture(refURL, null);
}
}
}
i can remember that i moved the main instanitaion of the gears local
server, ie:
try {
GEARS_localServer =
google.gears.factory.create("beta.localserver","1.0");
} catch(e) {
// user denied access to google gears
}
outside of this function and to load when the actual page loads and not
when the update occurs, ie it was in that function above (this may have
been the issue), although i messed around with some other things as
well, oh and the mainfest url was getting appneded with a postfix of "/"
as well for a time, which i also removed - i am not sure if this was
causing the problem, cause the mainfest was still loading and some other
things were still loading even when it was like this. I have heard that
asset location is defined relative to this manifest url.
Anyway it works, although i would have liked to have pinpointed the
problem..
Thanks again,
Adam