The problem was IE6, which throws an error about iframe.contentWindow being undefined. The problem with this is, that it throws that error when you're trying to check if the contentWindow property exists.
So
- if(iframe && iframe.contentWindow)
- if(iframe && typeof(iframe.contentWindow) != 'undefined')
Since the problem was impossible to debug or fix, I decided instead to just use AJAX to retrieve the page I was previously loading in the iframe. Using jquery this is relatively easy, and certainly much quicker to implement than all the tens of hours I spent on the iframe method.
No comments:
Post a Comment