XMLHttpRequest is undefined error in IE 6

Description

When loading the uploader demo in IE 6 it throws an XMLHttpRequest is undefined error.

This appears to be caused by this line of code.
line: 23

fluid.browser.binaryXHR = function () {
var canSendBinary = window.FormData || XMLHttpRequest.prototype.sendAsBinary;
return canSendBinary ? fluid.typeTag("fluid.browser.supportsBinaryXHR") : undefined;
};

Below is Colin's suggested fix from the fluid-work channel ( http://wiki.fluidproject.org/display/fluid/fluid-work+IRC+Logs-2010-12-14 )

var canSendBinary = window.FormData || (window.XMLHttpRequest && window.XMLHttpRequest.prototype.sendAsBinary);

Environment

Win Xp IE 6

Attachments

1

Activity

Show:

Justin Obara December 14, 2010 at 10:31 PM

Reviewed and Committed Mike's patch ( .patch ). Also had him run the demo with it and verified that it worked and that the unit tests are still passing.

Mike Lam December 14, 2010 at 9:48 PM

More complete feature check of XHR for progressive enhancement.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created December 14, 2010 at 9:17 PM
Updated December 14, 2010 at 10:31 PM
Resolved December 14, 2010 at 10:31 PM