Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Arun Ranganathan
Garrett Smith wrote: Please show the subsequent use cases you've studied and please do publish your studies. What I meant by use cases was this exchange: http://lists.w3.org/Archives/Public/public-webapps/2009JulSep/0371.html

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Gregg Tavares
On Wed, Aug 5, 2009 at 1:47 AM, Arun Ranganathan a...@mozilla.com wrote: Gregg Tavares wrote: I'd really like to contribute to this as I'm helping implement WebGL and we need a way to get LOTS of data into WebGL. Hundreds of files per app. That said, there's a bunch of things I don't

Re: Multipart or TAR archive/package support for all APIs (Performance and scalability)

2009-08-05 Thread Gregg Tavares
On Tue, Aug 4, 2009 at 12:15 PM, Sebastian Markbåge sebast...@calyptus.euwrote: There has been some talk about supporting packages/archives in web APIs. http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-July/021586.html

Re: HTML5: further input devices

2009-08-05 Thread Brian LeRoux
This would be a very useful exercise being that many devices are now shipping with or at least browser capable. Some examples: - sony playstation portable - nintendo ds: http://en.wikipedia.org/wiki/Nintendo_DS_Browser - Garmin GPS: http://www8.garmin.com/products/communicator/ 2009/8/4 ~:''

LCWD comment on Widgets 1.0: Access Requests Policy - reference RFC 2817

2009-08-05 Thread Krzysztof Maczyński
Informative references include RFC 2818. Please also include RFC2817, as it's preferable on architectural grounds (the https scheme is believed to be a mistake because it has semantics equivalent to http).

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Arun Ranganathan
Dmitry, the spec lists a use case about a web app that needs to send file(s) to the server programmatically. I happen to think lately about an E-mail app that can send attachments. FileData and its splice() method are useful here. I assume the XHR2 spec would get XHR.send(FileData) method.

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Arun Ranganathan
Gregg Tavares wrote The File API is meant to talk to your local file system. It isn't a network download API, but it seems that's what you want :-). Perhaps I am misunderstanding your question? Sorry, I was told on the HTML5 list that this is where network downloads and archive support

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Dmitry Titov
Hi, the spec lists a use case about a web app that needs to send file(s) to the server programmatically. I happen to think lately about an E-mail app that can send attachments. FileData and its splice() method are useful here. I assume the XHR2 spec would get XHR.send(FileData) method. XHR2

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Gregg Tavares
How about this? Why make a new API for getting the contents of a file (local or otherwise) when we already have one which is XHR? What if FileList was just array of File objects where each File object is just a URL in the format filedata: uuid, filename Then you can use that URL anywhere in

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Jonas Sicking
Oh, getAsURL should also be synchronous since no IO is occurring. / Jonas On Wed, Aug 5, 2009 at 6:55 PM, Jonas Sickingjo...@sicking.cc wrote: A few comments: Need to specify that all getAsX functions call the callback *asynchronously*. Also need to integrate this with the HTML5 event loop.

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Jonas Sicking
A few comments: Need to specify that all getAsX functions call the callback *asynchronously*. Also need to integrate this with the HTML5 event loop. getAsBinary should be called getAsBinaryString so that once we have a BinaryArray or some such we can add a getAsBinary that truly returns binary

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Garrett Smith
On Wed, Aug 5, 2009 at 1:04 AM, Arun Ranganathana...@mozilla.com wrote: Garrett Smith wrote: Please show the subsequent use cases you've studied and please do publish your studies. What I meant by use cases was this exchange:

Re: Web Storage how to check for support?

2009-08-05 Thread Darin Adler
On Aug 5, 2009, at 9:42 PM, Jonas Sicking wrote: 2009/8/1 João Eiras jo...@opera.com: How can one in a script check for UA support? else if(localStorage){} does not work for Opera**. This obviously does not work because you need to prefix localStorage with window

Re: Web Storage how to check for support?

2009-08-05 Thread Jonas Sicking
2009/8/1 João Eiras jo...@opera.com: How can one in a script check for UA support? else if(localStorage){} does not work for Opera**. Hi. This obviously does not work because you need to prefix localStorage with window if(window.localStorage) else the script breaks because localStorage