valums/file-uploader — Issue #237: Problem with responseJSON object in IE7 
Author: PaulTapper
Created: 2012-01-04 21:31:50+00:00
State: open

I've been using FileUploaderBasic with a custom onComplete method.

I found that the responseJSON object returned was always empty when running with IE7. I first thought I could solve it be using json2.js but that didn't work.

I eventually discovered that the _getIframeContentJSON method in fileuploader.js was always returning an empty response.

When I changed the line that read:
response = eval('(' + doc.body.innerHTML + ')');
to:
response = eval('(' + doc.body.innerText + ')');
I found that the method worked perfectly and the responseJSON was populated correctly.

Was this the correct way to resolve this? Or does anyone have a better way?

Thanks, Paul