Sunday, June 1, 2008

XMLHttpRequest

added mozBackgroundRequest

←Older revision Revision as of 02:05, 20 March 2008 Line 113: Line 113: req.send(null); req.send(null); dump("Content-Type: " + req.getResponseHeader("Content-Type") + "\n"); dump("Content-Type: " + req.getResponseHeader("Content-Type") + "\n");  +</pre>  +  +===mozBackgroundRequest===  +This property can be used to cause the request to disable authentication and bad certificate dialogs. The request is also not part of a window's loadgroup and so is not closed if the window is closed. {{fx_minversion_inline|3}}  +<pre>  +var req = new XMLHttpRequest();  +req.mozBackgroundRequest = true;  +req.open('GET', 'http://www.mozilla.org/', true);  +req.send(null); </pre> </pre>