I'm loading an iframe by changing its src attribute and then registering a handler for its load event, i.e.
obj.iframe.attr('src', src); obj.iframe.load(function() { ... });
This works well as long as the iframe loads correctly. I'm wondering if there's an easy way using jquery to set a timeout for the iframe to load and detect errors if it doesn't load correctly.