I´m just porting some on my html5+JS+CSS3 projects via webview loading.
But, when the project includes opening an external file (not loading a img or css, it´s throught a js call), the webview simply seems to failed. If I put that same file online and reach it with a link, it works, but when try to load localy, it just don´t.
Any ideas why?
Regards.
P.S.: if anyone knows about a b4j module that deals with epub3 (3 required, great deal), let me know.
Is in the Files folder of the project, but I also tryed to locate it in a fixed path (c:/book/moby-dick.epub) and nothing works. Yet, if in the html I call the online version like that:
var book = ePub(url || "https://s3.amazonaws.com/moby-dick/moby-dick.epub");
instead of
var book = ePub("moby-dick.epub");
or
var book = ePub(c:/book/moby-dick.epub");
(and both of them work fine in the html version), the online version catchs the file an runs properly. So i´m guessing is an access problem to the right folder.
Project attached (the epub file itself is not included because is bigger than the allowed max file size, but it can be downloaded forn the link above or any other epub file will work).