nativeDroid2
nativeDroid2 copied to clipboard
Blank page
Viewing index.html will show an empty page, left button doesn't open a menu, right button just opens an empty menu. I have seen users reported the same issue. The console shows errors like
HTTP404: NICHT GEFUNDEN: Der Server hat keine Übereinstimmungen für den angeforderten URI (Uniform Resource Identifier) gefunden. GET - http://www.domain.com/vendor/waves/waves.min.css
When I change the URIs in index.html e.g. from
to
it will show the content. But I would need to change this in any single file. Is it possible that this might be some server issue? Can I fix this with changing some settings on my web server? Also I have seen that you use URI such as //ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.css instead of http://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.css or /vendor/wow/wow.min.js instead of vendor/wow/wow.min.js Does that make sense?
Just saw that this might be a Github issue when downloading. Is there a way to downlaod from somewhere else so that the source-pathes won't change? Any direct download possible from developers website?
Well, I saw that in the source code on the developers website that they use the same pathes and URI as when I download it from github. So that seems to be correct. However, when I download it, it does not work. Blank pages. In any web browser. No matter if I try it on the local machine or on a web server.
Would be great to receive some help.
Hi qsrs,
I guess the problem relates to wrong paths to the assets (css & javascript).
Please check if you have the installation in the root-directory or not. otherwise adjust the paths to the assets.
CSS: https://github.com/godesign/nativeDroid2/blob/master/index.html#L9-L11
Javascript: https://github.com/godesign/nativeDroid2/blob/master/index.html#L43-L46
Have a look at the first "/" in the SRC its pointing to the root-directory. Remove this and you'll have a link relative from wherever your index.html lays.
Hi godesign,
thank you very much for your reply. This is what I have tried already - but it works only partially. I also have to adjust the pathes in any other file aswell, such as in panel.left.html (removed the leading slashes for css and js pathes) and also in any other single example file, whereas here I had to set pathes like ../../css/nativedroid2.css
Since it's a great framework for mobile solutions, I guess most of the developers would place the content into a subdirectory (besides their fullscreen desktop site). Wouldn't it be better to use pathes to make it work in any directory, root or sub? Just a friendly suggestion :)
Anyway, I could make it work with changing the pathes, or I might use a subdomain. Just think I need to adjust it any time when there is an update, when I change the pathes.