View Full Version : Extjs-all-debug.js errors in IE8 but not in FF

27 Oct 2011, 3:27 PM

I'm writing a file upload page that's working fine in Firefox but not in IE8, I got blank page in IE8 and the debug tool stopped twice complaining about 2 errors in Extjs-all-debug.js:

1. doDecode = function(json){
return eval("(" + json + ")");
This error kinda went away when replaced by the following line, but not sure if that's the right way to do it.

return eval('(function(){ return json; })()');

2. if(result === true || result.success) got 'success' is null or not an object

Would someone please kindly help?


28 Oct 2011, 6:40 AM
What does you JSON look like? Is it valid if you run it through jsonlint.com?

28 Oct 2011, 12:37 PM
Hi Mitchell, thanks a lot for getting back to me.

I actually don't have a JSON object, I'm just sending a file from client to server through httpservlet, the file gets transferred in both IE8 and FF, but in IE8, the program just stopped going into the success block:

url: 'fx/FXFileUploadServlet',
success: function(form,action){
//msg('Success', 'Processed file on the server');
failure: function(form,action){
//msg('Almost there', 'Does not work yet');

28 Oct 2011, 3:13 PM
I think I got it resolved, I set the contentType from text/plain to - response.setContentType("text/html") and then added String json = "{success:true}" in the HttpServletResponse.