Hey Remy,
The reason you see "JSCallback Error: Request failed" is that the
CallbackServer has been shut down when you navigated from the current
page that has PhoneGap loaded to the new page you specified via
window.location. It's not the most descriptive log we've ever posted.
Simon Mac Donald
http://hi.im/simonmacdonald
On Thu, Aug 16, 2012 at 8:26 AM, Remy Sharp <
re...@leftlogic.com> wrote:
> I might be being thick here, but I've created a local file to my device (via the FileWriter API - which works), and I'm doing `window.location = file.toURL();` which does actually work.
>
> But I'm seeing Cordova throwing an error "JSCallback Error: Request failed" - which I gather the connection between the client and Cordova have been shot dead (or at least switched to polling, which doesn't really make much sense to me).
>
> I'm testing on a real device on Jelly Bean / 4.1 (whatever's latest). Using PhoneGap 2.0.0.
>
> Should I be loading internal resources differently that using `window.location`?
>
> Cheers,
>
> - Remy
>
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to
phon...@googlegroups.com
> To unsubscribe from this group, send email to
>
phonegap+u...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to
www.phonegap.com
>
> To compile in the cloud, check out
build.phonegap.com
>
>