I used to suffer from the problem in Opera when using ajaxfileupload.js
error occur sometime due to the following piece of code
xml.responseText =
io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:null;
xml.responseXML =
io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;
as
io.contentWindow.document.body is null ;
my solution is add a javasciprt settimeout funciton (about 200ms),
the timeout function runs until
io.contentWindow.document.body value is not null
I used to add a counter in the loop of the timeout function and alert
the value of counter of at the end of the loop
the value is between 50k to 70k.
I think my situation is similar to yours and hope that it can shed
some light on ur problem
2010/1/30 Marc Worrell <[email protected]>
> Hi,
>
> I was fixing a problem where file uploads with the jquery.form.js
> didn't work.
> I found the fix in the newer release where using a timer the dom is
> checked 50 times to see if the upload finished.
> After some investigation I suspect that the problem is not timing but
> that Opera triggers the 'load' event on receiving the 100 continue
> from the server.
>
> This means that the solution is not retrying 50 times, but just
> waiting for the second load event.
>
> Any opinions?
>
> - Marc
>