I am using this ajax file upload script, and all works well in firefox http://valums.com/ajax-upload/
But it does not work in IE8.
EDIT: Ok, i’ve narrowed down the problem. In my php ajax response I do this
$result['table_1']='<b>text</b>';
echo json_encode($result);
The result I see in the IE developer tools looks like this
JOURNAL : [uploader] innerHTML = {"table_1":"<B>text<\/b>"}</B>
The end of the inner html got messed up, and the json got messed up with the correct ending tag somehow ending up outside the json??
I am using php 5.2
Ok, I found a olution that works. This library works through an iframe, so to return text like
I have to manually encode and decode the ” myself because they get messed up in the iframe.
So the final php looks like this
And then to manually decode in the javascript looks like this