cmlenz/jquery-iframe-transport — Issue #7: Runtime error in IE when REST request threw an exception
Author: DavJenkins
Created: 2012-02-01 17:44:05+00:00
State: open

In IE9, if the server request threw an exception, the reference to "this.contentWindow.document" at line 182 throws an "Access Denied" runtime exception. (Thank you, Microsoft.) Wrapping the current load function implementation in a try/catch:

try
{
var doc = [...]
[...]
}
catch (e) {
cleanUp();
completeCallback(500, "Internal Server Error");
}

appears to fix the problem.

Any thoughts or comments on this would-be workaround?

Dave