Hi,
I'm having problems with the method capture() of the ressource store.
Sometimes, when i want to capture an url or an array of url, I can't
capture all ressources, either I can't access all ressource, that is
to say that I don't have any callback or it stops in the middle of the
capture of an array without other messages.
I can show you my code where I use the method:
//////////////////////////////////////////////////////////////////////////
console.log('file to capture: ' + files);
console.log('begin capture');
store.capture(files, function(url, success, captureId){
console.log('captured: ' + url + ' ----success: ' + success +
'----captureId: ' + captureId);
});
//////////////////////////////////////////////////////////////////////////
and my Firebug Panel to show you what happens:
//////////////////////////////////////////////////////////////////////////
>create local server
>file to capture:
>http://localhost/freedom//Images/mime-wordprocessing.png,http://localhost/freedom/?app=FDL&action=EXPORTFILE&inline=no&cache=no&vid=111&docid=1169&attrid=sfi_file&index=-1,http://localhost/freedom/?app=FDL&action=EXPORTFILE&inline=no&cache=no&vid=112&docid=1170&attrid=sfi_file&index=-1,http://localhost/freedom/?app=FDL&action=EXPORTFILE&inline=no&cache=no&vid=109&docid=1167&attrid=sfi_file&index=-1,http://localhost/freedom/?app=FDL&action=EXPORTFILE&inline=no&cache=no&vid=107&docid=1165&attrid=sfi_file&index=-1,http://localhost/freedom/?app=FDL&action=EXPORTFILE&inline=no&cache=no&vid=108&docid=1166&attrid=sfi_file&index=-1,http://localhost/freedom/GEARS/Images/aide.gif
>begin capture
>END create Local Server
>captured: http://localhost/freedom//Images/mime-wordprocessing.png
>----success: true----captureId: 1
>captured:
>http://localhost/freedom/?app=FDL&action=EXPORTFILE&inline=no&cache=no&vid=111&docid=1169&attrid=sfi_file&index=-1
> ----success: true----captureId: 1
//////////////////////////////////////////////////////////////////////////
So, as you can see it stop at the middle without reasons, sometimes it
doesn't begin, sometimes it goes until the end of my array... I don't
understand what is happening.
I can't find a solution, I tried lot of things without success.
has anybody a solution?
thanks.
Loic