Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the content src in config.xml problem #9

Closed
wliment opened this issue Apr 1, 2015 · 3 comments
Closed

the content src in config.xml problem #9

wliment opened this issue Apr 1, 2015 · 3 comments

Comments

@wliment
Copy link

wliment commented Apr 1, 2015

my phonegap code work in chrome browser and android and orginal phonegap framwork,

but now it has some problem with phonegap-air
if i set the content start page with a subdir , example: pages/login.html)
content src="pages/login.html"

the content of pages/login.html will not loaded excpet hte login.html ;

src="images/login_logo.png" not load in pages/login.html
the images dir is a subdir in pages dir.

image

if i change this to src="pages/images/login_logo.png" the login_logo.png will show in pages/login.html page.

@ben-ng
Copy link
Owner

ben-ng commented Apr 1, 2015

Yes, all paths are made relative to the app root because the index src is loaded as if it was at the app root.

@wliment
Copy link
Author

wliment commented Apr 1, 2015

@ben-ng i sovle this issue ,
i add a file in root named index.html and redirect it to /pages/login.html, so now all file loaded correct

@ben-ng
Copy link
Owner

ben-ng commented Apr 1, 2015

Thanks for the follow up. Running web code on phonegap doesn't follow the same rules that you expect on a server because of the filesystem.

@ben-ng ben-ng closed this as completed Aug 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants