[Wikiwyg-dev] IE Windows : Unspecified Error in Wysiwyg.js
I am trying to get wikiwyg working with DokuWiki. However, I am
running into an issue with IE and wikiwyg.
IE 6 is giving me an "Unspecified Error" when it encounters this
function in Wysiwyg.js
---
proto.get_edit_document = function() {
return this.edit_iframe.contentWindow.document;
}
---
Specifically, it is barfing on
this.edit_iframe.contentWindow
---
proto.get_edit_document = function() {
alert(this);
alert(this.edit_iframe);
alert(this.edit_iframe.contentWindow); //barfs on this
var d = this.edit_iframe.contentWindow.document;
return d;
}
---
IE 6.0.2900.2180.xpsp_sp2_rtm.040803-2158
Didn't find much info online about this, but I did come across this:
http://www.oreillynet.com/pub/a/javascript/2002/02/08/iframe.html
------
Sadly, referencing the IFRAME's document object is no simple task,
since IE5, IE5.5, IE6, and NS6 all provide different ways to access
it. IE5, both on the Mac and PC, provides the simplest method:
IFRAMEs in this browser show up in the document.frames array and have
a document property. In IE5.5, IE6 and NS6, you can retrieve the
IFRAME element object with document.getElementByID(), then, in NS6,
use the object's contentDocument property, and in IE 5.5+, use the
document property of the IFRAME object's contentWindow property.
That's quite a mouthful, isn't it?
------
Is this a known issue? Has anyone else ran into this? Any known
workarounds?
mike chambers
This archive was generated by a fusion of
Pipermail (Mailman edition) and
MHonArc.