Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Does anyone know if its possible to save an HTML file to your iphone and then open it with Safari so that you can then favourite it and have it appear on the launcher as an icon?

share|improve this question
    
If your iPhone is up-to-date (iOS 5.x), check out these tips: apple.com/iphone/tips –  iglvzx Feb 1 '12 at 2:09
    
Did you mean copying an HTML file from a computer to the iPhone's home screen? There is no official way of doing this. There may be a way to do it if your iPhone is jailbroken, since you have access to the file system. –  iglvzx Feb 1 '12 at 2:26
    
Yes, that is what I meant. I have html file that does multiple cross site xmlhttprequests, which for most browsers are only allowed if the file came from a local file system and not from a server. –  kiasecto Feb 1 '12 at 3:00
    
Are you still looking for an answer to this question? –  bmike Jul 8 '12 at 13:34
add comment

migrated from superuser.com Feb 1 '12 at 12:06

This question came from our site for computer enthusiasts and power users.

4 Answers

Once the page is opened on your iPhone all you have to do is tap the Sharing icon, middle icon on bottom, and select 'Add to Home Screen'

If you want to load an html file that you've created on you Mac to your iPhone you'll need to do the following. From System Prefs > Sharing > Enable Web Sharing. Place the html file in your ~/Sites folder. Go the the URL listed in the Web Sharing panel from your iPhone, while on the home network, and open the html file. It will load in Mobile Safari.

If you want this to stay on your iPhone you'll need to have the page written in html5 and have a properly setup CACHE MANIFEST. This includes the appropriate tag in the html file and have the proper manifest file. Then you can follow the first step and add it to your home screen and always have it on your iPhone.

share|improve this answer
    
Are you trying to copy an html file that you've created or just add a link to the home screen? –  afragen Feb 1 '12 at 2:38
    
An explanation for a downvote would be appreciated. –  afragen May 10 '12 at 15:27
add comment

HTML file I'm assuming you are talking about some pages on the web.

If so yes you can by pressing on the:

and you will have the icon on your homescreen to use it next time.

But for your information this is not the actual saving of that page it just like a favorite bookmark icon which can make you easily access to that page with a touch!.

But if you want to really save that page in an offline mode then you have to jailbreak your phone and get a tweak from Cydia which will give you an option to save it as an offline to open it next time.

And last thing if I was wrong for the above answer. And you were talking about actualy HTML code page and you want to save them and open to view the code [Source codes]

then you probably need an app from appstore [or even from cydia] or tweak from cydia to do that otherwise you can't.

share|improve this answer
add comment

What works for me is to actually save the desired web page as a Web Archive from within Safari on the Mac, then have this file emailed to myself. On the iPhone, the only software I have that managed to open this Web Archive file successfully is GoodReader.

share|improve this answer
add comment

The only way I know of without jailbreaking is to use Dropbox.

share|improve this answer
1  
Or any other file syncing app like SugarSync, Air Sharing, Good Reader and more. –  patrix Jul 8 '12 at 16:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.