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.

Using a web browser (e.g., Safari, Chrome, etc.) can I view html pages that are stored locally on the iPad? The pages should render properly and execute Javascript/CSS properly.

share|improve this question
4  
Where are these files stored? –  bassplayer7 May 15 '13 at 16:18

4 Answers 4

Since the files are always local to the app in iOS. You can't open a html with apps like Safari and Chrome to load associated assets (js/images/css).

However, You could use apps like Documents to upload the folder and open in app browser (uiwebview).

Should work if the URL to assets in the html are relative.

share|improve this answer
    
As I read your answer, it's basically a no. You can't store documents and have the full browsers open them. Chrome, Safari, etc… due to sandboxing. Yes, most apps embed a less optimized web viewer based on the same framework / WebKit as Safari but without some javascript optimizations. –  bmike Oct 11 '13 at 14:13

Not sure if this has been fully answered or if this will do the trick, but i've been using an app called xStand to run zip'd files of index folders locally on the iPad. I need it mostly to run sites on my ipad in kisok mode and this does it all.

you can upload the index (and subsequent folders) as a single ZIP. the app will read this and un-package it. Works like a charm in my limited experience.

http://www.xstandapp.com/english/index.php

share|improve this answer

You can create Web Apps for offline viewing by adding them to the home screen. To do this the web page must be written using HTML5 Offline Application Cache. See the below link for further details.

https://developer.apple.com/library/safari/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html

share|improve this answer

Atomic browser will work it out!

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

2  
Thanks for your answer! Please add some more information so that the OP can clearly understand your answer. –  daviesgeek Mar 29 at 20:21

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.