Got Microsoft JScript runtime error: Type mismatch when refreshing the page (F5)

260 views
Skip to first unread message

tuandv

unread,
Jan 4, 2011, 10:22:59 PM1/4/11
to jsTree
I got this error at callback.call(null,
xm.transformNode(xs.XMLDocument)); in the setTimeout function.

setTimeout( (function (xm, xs, callback) {
return function () {
callback.call(null, xm.transformNode(xs.XMLDocument));
setTimeout( (function (xm, xs) { return function ()
{ jQuery("body").remove(xm).remove(xs); }; })(xm, xs), 200);
};
}) (xm, xs, callback), 100);

When I debug code, I see that xs.XMLDocument is undefined, but before
calling this method I see that this object is already prepared, I
don't know why, maybe we need delay for a while after create xs
object???

So easy to duplicate this error, the first load is always ok, and then
press F5 to refresh the page, we will get this error.

vakata

unread,
Jan 12, 2011, 11:13:33 AM1/12/11
to jsTree
Hi,

I've been struggling with this issue for quite a while! The reason is
that no event is fired (or at least I do not know it) when the XML
transformation is done in IE. So the only choice I have is to use a
timeout, but sometimes the result is not yet ready ... so everything
breaks and you get this error.
I will do my best to fix this in the next version.

Kindest regards,
Ivan

bharath

unread,
May 2, 2013, 4:28:59 PM5/2/13
to jst...@googlegroups.com, tua...@gmail.com
Any update on this issue.

Thanks
Bharath 
Reply all
Reply to author
Forward
0 new messages