Difference between revisions of "Webcam javascript app notes"

From TAMI
Jump to navigationJump to search
(Created page with "We have a server providing a chunked multipart message. # this must not fall afoul of cross site scripting protections, so run from the same server # firefox supported a mult...")
 
Line 2: Line 2:
  
 
# this must not fall afoul of cross site scripting protections, so run from the same server
 
# this must not fall afoul of cross site scripting protections, so run from the same server
# firefox supported a multipart attribute to the XHR and it's been removed since firefox 22, don't use that (it was firefox only anyway - see [https://bugzilla.mozilla.org/show_bug.cgi?id=843508 bz 843508]
+
# firefox supported a multipart attribute to the XHR and it's been removed since firefox 22, don't use that (it was firefox only anyway - see [https://bugzilla.mozilla.org/show_bug.cgi?id=843508 bz 843508])
 +
 
 +
[https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest?redirectlocale=en-US&redirectslug=DOM%2FXMLHttpRequest XMLHttpRequest] (XHR) with progress events are the way to go.

Revision as of 11:44, 8 December 2013

We have a server providing a chunked multipart message.

  1. this must not fall afoul of cross site scripting protections, so run from the same server
  2. firefox supported a multipart attribute to the XHR and it's been removed since firefox 22, don't use that (it was firefox only anyway - see bz 843508)

XMLHttpRequest (XHR) with progress events are the way to go.