hello all,currently i'm experiencing a problem when the free text box starts out on the page as being inside a div with style="display:none;" while using FireFox. basically what happens when the div style is changed to "display:block;" is that the editor appears but it's like the frame you type in is frozen. also when the page loads, in the javascript console it has this error:Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.designMode]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost/Common/FreeTextBox/FTB-FreeTextBox.js :: FTB_FreeTextBox :: line 96" data: no]Source File: http://localhost/Common/FreeTextBox/FTB-FreeTextBox.jsLine: 96That line is the following: this.designEditor.document.designMode = 'On';So from what i've gathered the designMode of the iframe can't be set to On in FireFox if the iframe is nested inside a non-displayed element. ok. so how do we work around this problem? i came up with a super ghetto way to make it work which involves 2 things - the first thing is having the div show as display:block to begin with and hiding it later, and the second is calling var ftb = document.getElementById(ftbID).contentWindow.document.ftb;ftb.GoToHtmlMode(); ftb.GoToDesignMode();to make the ftb type-in-able. is there a better way to do this? like maybe a way to prevent the FTB from adding its initialize event to the page load and instead letting me initialize it after i've displayed the div that it's in so it doesn't cause the firefox internal error if the div is hidden?thanks,chris
Has anyone come up with a work-around for this yet?
I have multiple FTBs in one div tag so it would make it difficult to "reset" the GoToHTMLMode() for each one.
Any help is greatly appreciated!
Thanks,Chad
Hi
see if this helps
http://freetextbox.com/forums/thread/9085.aspx
Ian