- From: Filip Maj <fil@adobe.com>
- Date: Thu, 24 Nov 2011 13:39:42 -0800
- To: "public-native-web-apps@w3.org" <public-native-web-apps@w3.org>
>4. Apps being able to XHR to their own content has come up a lot (so >jQuery mobile and other libs can be used more easily). Also, a lot of >widget-like apps still use file://, which is bad because it breaks >anything depending on an origin (e.g., localStorage). > >Just wondering, what are you guys using in PhoneGap as your local content >URI scheme on the various platforms? Relative URLs. So if you have an app running off index.html in your widget root, you can XHR to "partials/template_one.html" and get the right local content. Interesting side note on this, again, related to reality and not to what looks best spec-wise, that using the File API is *way* faster on a majority of platforms than making XHRs. I agree that XHR'ing is more of a "web" approach, though...
Received on Thursday, 24 November 2011 21:40:18 UTC