- This topic has 5 replies, 2 voices, and was last updated 14 years, 1 month ago by gregpxc.
-
AuthorPosts
-
gregpxcMemberso I uploaded all the files and folders into the main section of my hosting account. Everything shows up perfectly when you go to the domain except the images. By images I mean the ones that are in the res/images folder. That’s the back arrows and the table arrows and all others in that folder. Why is that?
wayneModeratorMobiOne webapps are pretty basic HTML webapps that use relative URLs to resources such as images, js and css files.
Step-0: did your run and test your design in the MobiOne Test Center and confirm it runs properly there?
If res/images are not appearing from your host site my 1st step would be to verify that they are in the proper location relative to your main html file(s).
Step-1: inspect your host website directory to ensure that it has same structure as that generated by MobiOne. If you manually created dirs watch for spelling mistakes.
Step-2: You can verify this very quickly from any web browser by attempting to load one of the resource images:
Let’s say the start html file can be successfully loaded from the following URL:
http://foo.com/bar/mymobileapp.html
then construct a url to a resource like this below and see if it loads.
http://foo.com/bar/res/images/backButton.png
If your test URL does not load then most likely the webapp was not packaged or uploaded correctly.
Let me know what you find out. If after inspection you still have a NOGO there maybe some other things we can checkout.
Wayne
Genuitec Mobile Team
gregpxcMemberI haven’t tried your testing method yet since I’m not by a computer but I was just curious if there’s a special way to upload these files? Essentially I went through and exported each .mobi file to it’s respective HTML document. I exported all of them to a folder called WebApp and then I uploaded them (using filezilla) to the root of my server. Is there a method for packaging all of the related pages in my project?
wayneModeratorIf you have multiple design files that are linked together, i.e., one design refers to another via a ui control’s “link” property, then you only need to export the root design. The export process will always export a design’s linked (referenced) designs into your target directory. Then you can upload that directory to your webserver.
Wayne
Genuitec Mobile Team
gregpxcMemberunfortunately I am still not having any luck. When I type in a specific path to the image I get a broken image icon. I wonder why this is?
gregpxcMemberproblem solved. I don’t think my host allows me to upload images using filezilla so I used the cpanel uploader and it worked great. Thanks again!
-
AuthorPosts