I have written a javascript simulator library. You can get the source from GitHub https://github.com/jxp/phonegap-desktop
It is intended for debugging/development so I'm not sure it will do what you need but it might be a place to start.You can specify your own test data in a json file and the simulator will return whatever data you want.
--
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
I've already started working on that. I am still thinking what would be the best way to do it.
In Firefox I plan to emulate FS with local storage.
However for older browsers even local storage won't work.
Another idea for certain cases, where you only download a file to cache it locally is to emulate it by saving the original URL in the FileEntry that FileTransfer.download returns, and use it via Ajax every time you need it. What's funny that in my case I would only use most files with File.toURL() anyway, so tha's a good solution for some files. Of course it won't work when someone creates a local file and wants to save something in it.