How to retrieve external data while offline in mobile safari

I'm building several apps using the HTML5 standard with the intention of running them offline in Mobile Safari. Most of these apps provide a graphical representation of data collected in several massive plain text files that are going to be packaged alongside the core app files. I need a way to retrieve the data in these files and represent them as a String or some other readable object in Javascript.

From my limited amount of research it would appear that cross-origin restrictions prevent me from doing this, even though all files are working from a local directory. Is there something I'm missing or is there no way for me to accomplish what I'm after?

Answers


I'd use JSON. You can grab data cross-domain using JSON-P if needed. JSON is also local-storage friendly.


Need Your Help

excel vba check if command button and checkbox exists

excel vba excel-vba exists commandbutton

I have a script that uses checkboxes and command buttons, and there is a macro that resets them to default on every sheet.

Creating XPS in WPF - used image files are being locked until my app quits

wpf flowdocument xps file-locking

In my WPF app, I am creating a FlowDocument by building its XAML markup as a string, and then using XamlReader.Parse to turn the string into a FlowDocument object, which I then save to an XPS docum...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.