jquery-iframe-transport icon indicating copy to clipboard operation
jquery-iframe-transport copied to clipboard

Runtime error in IE when REST request threw an exception

Open DavJenkins opened this issue 13 years ago • 2 comments

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

DavJenkins avatar Feb 01 '12 17:02 DavJenkins

:+1: I'm running into this as well.

ghing avatar Mar 20 '13 22:03 ghing

Any updates on this?

PunkChameleon avatar Dec 17 '14 18:12 PunkChameleon