Re: [WSG] HTML5 offline storage question

2010-08-14 Thread Rob Crowther

Rob Crowther wrote:
Or, as you say above, does the user 
have to visit each page?  I'll have some time this afternoon so I'll 
probably just try it myself :)


Just wanted to confirm: I tested this last night in Firefox 4.0 beta - 
any manifests linked to in pages downloaded by another manifest file 
don't get processed until the user visits the page in question.


Rob


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] HTML5 offline storage question

2010-08-13 Thread Rob Crowther

On 13/08/10 05:17, Ryan Seddon wrote:

Yeah that is a good point. Although doing so would require the person to
visit each page which has it's own manifest before it will be cached.

  Have you ever tried caching pages which themselves have manifests?


If you're referring to the page which references the manifest. The page
which calls the manifest is automatically included in the cache.

What I was driving at was if you list in a 'parent' manifest five pages, 
and each of those pages have manifests, does the browser download all 
files in those five manifest files?  Or, as you say above, does the user 
have to visit each page?  I'll have some time this afternoon so I'll 
probably just try it myself :)


Rob


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] HTML5 offline storage question

2010-08-12 Thread Rob Crowther

Ryan Seddon wrote:
If you make an update to the manifest file it will 
re-download every asset listed in the manifest.


You can split resources across multiple manifest files, though, as far 
as I can tell, the you only get one manifest per page.  Have you ever 
tried caching pages which themselves have manifests?


I wrote an article way back you might be interested in - 
http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone



Thanks for the article.

Rob


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] HTML5 offline storage question

2010-08-12 Thread Ryan Seddon
On Thu, Aug 12, 2010 at 9:59 PM, Rob Crowther robe...@boogdesign.com
wrote:

 You can split resources across multiple manifest files, though, as far as I
 can tell, the you only get one manifest per page.


Yeah that is a good point. Although doing so would require the person to
visit each page which has it's own manifest before it will be cached.


  Have you ever tried caching pages which themselves have manifests?


If you're referring to the page which references the manifest. The page
which calls the manifest is automatically included in the cache.

-Ryan


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***

Re: [WSG] HTML5 offline storage question

2010-08-10 Thread Ryan Seddon
I've played around with the appCache quite a bit and it certainly has its
limitations. If you make an update to the manifest file it will re-download
every asset listed in the manifest. The limit, although it isn't documented
anywhere, is 5mb for iPhone and 10mb for iPad. It's really only designed for
assets that will rarely change.

I wrote an article way back you might be interested in -
http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone

-Ryan

On Tue, Aug 10, 2010 at 3:58 AM, Rob Crowther robe...@boogdesign.comwrote:

 Hi Andrew


 Andrew Harris wrote:

 Is the offline storage tool in HTML5 designed for this sort of heavy
 lifting?
 are there storage limitations?
 on an iPad?

  Can you confirm, are you referring to Web Storage[1] or Offline
 Resources[2]?  Web Storage is really just cookies on steroids and probably
 isn't what you're after to store large amounts of binary data.  Offline
 Resources may be up to it, it's not clear to me what the limits are and I
 can't find any definitive documentation anywhere, but it's a whole different
 approach[3].

 Rob

 [1] http://www.w3.org/TR/webstorage/
 [2]
 http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#offline
 [3]
 http://developer.apple.com/safari/library/documentation/iphone/conceptual/safarijsdatabaseguide/OfflineApplicationCache/OfflineApplicationCache.html



 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: memberh...@webstandardsgroup.org
 ***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***

Re: [WSG] HTML5 offline storage question

2010-08-09 Thread Josh Godsiff
I avoid Apple products like the plague, so perhaps I'm missing some info 
here, but what's wrong with simply getting the user to download the file 
in the normal fashion?


- Josh

On 9/8/2010 3:11 PM, Breton Slivka wrote:

The iPhone has a 5mb upper limit per page. I think the ipad's limit is 10mb but 
I am not sure. So in other words, no.

-Breton

On 09/08/2010, at 2:55 PM, Andrew Harrisand...@woowoowoo.com  wrote:

   

Hi all, I'm asking around the traps on a question which has come up at work.

We want to develop an iPad app to will allow users to download from a
website (like a synch) large quantities (hundreds of MB) of documents
(pdf and word) for reading offline.

Is the offline storage tool in HTML5 designed for this sort of heavy lifting?
are there storage limitations?
on an iPad?

I've found a few examples of the tool in action and read bits and
pieces, but it all seems to be about storing small chunks of data, not
humunguous great whumps of it.

--
Andrew Harris
and...@woowoowoo.com
http://www.woowoowoo.com

~~~*  ~~~


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***

 


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***

   



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] HTML5 offline storage question

2010-08-09 Thread David Dorward
 
On 9 Aug 2010, at 08:59, Josh Godsiff wrote:

 I avoid Apple products like the plague, so perhaps I'm missing some info 
 here, but what's wrong with simply getting the user to download the file in 
 the normal fashion?

Apps are heavily sandboxed and there is no user accessible global file system.

-- 
David Dorward
http://dorward.me.uk



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] HTML5 offline storage question

2010-08-09 Thread akella
You can store on iPhone with Web Database any amount of data.
It will just ask user does he really want to allow this site to use, say,
100mb.
My application for the iPhone stores 150mb now.

Yuriy akella Artyukh,
http://cssing.org.ua



On Mon, Aug 9, 2010 at 11:03 AM, David Dorward da...@dorward.me.uk wrote:


 On 9 Aug 2010, at 08:59, Josh Godsiff wrote:

  I avoid Apple products like the plague, so perhaps I'm missing some info
 here, but what's wrong with simply getting the user to download the file in
 the normal fashion?

 Apps are heavily sandboxed and there is no user accessible global file
 system.

 --
 David Dorward
 http://dorward.me.uk



 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: memberh...@webstandardsgroup.org
 ***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***

Re: [WSG] HTML5 offline storage question

2010-08-09 Thread Jody Tate
Asking why not just use the cache is a valid question. 

In this case, using HTML5 storage to house files doesn't seem to be tapping 
into all HTML5 storage can do--but it's not violating what storage can do 
either (so far as I know).

HTML5 storage is like cookies: Simply put, it’s a way for web pages to store 
named key/value pairs locally, within the client web browser. Like cookies, 
this data persists even after you navigate away from the web site, close your 
browser tab, exit your browser, or what have you. Unlike cookies, this data is 
never transmitted to the remote web server (unless you go out of your way to 
send it manually). That's from: 
http://diveintohtml5.org/storage.html#localstorage

So, HTML5 storage is more for data storage--storing key/value pairs (like 
massive cookies)--than just a repository of files. This is how I understand it. 
Others may know more. 

I'd think a iPhone/iPad native app would want to look beyond HTML5 storage and 
into File Management. But if this is a web app, then HTML5 storage might be the 
only option. But I'm far from being an expert. 

-jody




On Aug 9, 2010, at 12:59 AM, Josh Godsiff wrote:

 I avoid Apple products like the plague, so perhaps I'm missing some info 
 here, but what's wrong with simply getting the user to download the file 
 in the normal fashion?
 
 - Josh
 
 On 9/8/2010 3:11 PM, Breton Slivka wrote:
 The iPhone has a 5mb upper limit per page. I think the ipad's limit is 10mb 
 but I am not sure. So in other words, no.
 
 -Breton
 
 On 09/08/2010, at 2:55 PM, Andrew Harrisand...@woowoowoo.com  wrote:
 
 
 Hi all, I'm asking around the traps on a question which has come up at work.
 
 We want to develop an iPad app to will allow users to download from a
 website (like a synch) large quantities (hundreds of MB) of documents
 (pdf and word) for reading offline.
 
 Is the offline storage tool in HTML5 designed for this sort of heavy 
 lifting?
 are there storage limitations?
 on an iPad?
 
 I've found a few examples of the tool in action and read bits and
 pieces, but it all seems to be about storing small chunks of data, not
 humunguous great whumps of it.
 
 -- 
 Andrew Harris
 and...@woowoowoo.com
 http://www.woowoowoo.com
 
 ~~~*  ~~~
 
 
 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: memberh...@webstandardsgroup.org
 ***
 
 
 
 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: memberh...@webstandardsgroup.org
 ***
 
 
 
 
 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: memberh...@webstandardsgroup.org
 ***
 



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] HTML5 offline storage question

2010-08-09 Thread Rob Crowther

Hi Andrew

Andrew Harris wrote:

Is the offline storage tool in HTML5 designed for this sort of heavy lifting?
are there storage limitations?
on an iPad?

Can you confirm, are you referring to Web Storage[1] or Offline 
Resources[2]?  Web Storage is really just cookies on steroids and 
probably isn't what you're after to store large amounts of binary data. 
 Offline Resources may be up to it, it's not clear to me what the 
limits are and I can't find any definitive documentation anywhere, but 
it's a whole different approach[3].


Rob

[1] http://www.w3.org/TR/webstorage/
[2] 
http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#offline
[3] 
http://developer.apple.com/safari/library/documentation/iphone/conceptual/safarijsdatabaseguide/OfflineApplicationCache/OfflineApplicationCache.html



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] HTML5 offline storage question

2010-08-08 Thread Brad Kellett
It's really not designed for that amount of data. Perhaps this StackOverflow 
question will give you an idea on limits - 
http://stackoverflow.com/questions/1921048/limit-of-localstorage-on-iphone

~bck


On 09/08/2010, at 2:55 PM, Andrew Harris wrote:

 Hi all, I'm asking around the traps on a question which has come up at work.
 
 We want to develop an iPad app to will allow users to download from a
 website (like a synch) large quantities (hundreds of MB) of documents
 (pdf and word) for reading offline.
 
 Is the offline storage tool in HTML5 designed for this sort of heavy lifting?
 are there storage limitations?
 on an iPad?
 
 I've found a few examples of the tool in action and read bits and
 pieces, but it all seems to be about storing small chunks of data, not
 humunguous great whumps of it.
 
 -- 
 Andrew Harris
 and...@woowoowoo.com
 http://www.woowoowoo.com
 
 ~~~ * ~~~
 
 
 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: memberh...@webstandardsgroup.org
 ***
 



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] HTML5 offline storage question

2010-08-08 Thread Breton Slivka
The iPhone has a 5mb upper limit per page. I think the ipad's limit is 10mb but 
I am not sure. So in other words, no. 

-Breton  

On 09/08/2010, at 2:55 PM, Andrew Harris and...@woowoowoo.com wrote:

 Hi all, I'm asking around the traps on a question which has come up at work.
 
 We want to develop an iPad app to will allow users to download from a
 website (like a synch) large quantities (hundreds of MB) of documents
 (pdf and word) for reading offline.
 
 Is the offline storage tool in HTML5 designed for this sort of heavy lifting?
 are there storage limitations?
 on an iPad?
 
 I've found a few examples of the tool in action and read bits and
 pieces, but it all seems to be about storing small chunks of data, not
 humunguous great whumps of it.
 
 -- 
 Andrew Harris
 and...@woowoowoo.com
 http://www.woowoowoo.com
 
 ~~~ * ~~~
 
 
 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: memberh...@webstandardsgroup.org
 ***
 


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***