We use an XMLHttpRequest mock up object to test our ExtJs 4.1 app with Jasmine. Now, everythings works perfectly in Chrome and Firefox, but IE versions 7 till 9 are making trouble as always.
There is an error at onreadystatechange
function,
if readyState
is 1
then SCRIPT575
(cannot continue due to error c00c023f
)
if readyState
is 2
then SCRIPT10
(required data not yet available)
See this Jsfiddle (search for "error" to jump to line)
Additionally, there is a error TypeError: Object expected
.
What I have read:
I read a couple of posts like this and that, but none of the recommendations fixed it.
Note:
in Chrome & Firefox all requests only return readyState
4
, but in IE readyState
the values are repeated from 1 till 4 (?).
Chrome & FF
readyState 4 => OK
readyState 4 => OK
readyState 4 => OK
readyState 4 => OK
readyState 4 => OK
...
IE:
readyState 1 => error
readyState 2 => error
readyState 3 => OK
readyState 4 => OK
readyState 1 => error
...
Can you guide me how to fix this? I have no clue.