function myFacesKupuReactivateDesignMode(iframe) {
var isIE = document.all && window.ActiveXObject && navigator.userAgent.toLowerCase().indexOf("msie") > -1 && navigator.userAgent.toLowerCase().indexOf("opera") == -1;
if (isIE) {
var body = iframe.contentWindow.document.getElementsByTagName('body')[0];
body.setAttribute('contentEditable', 'true');
}
else {
iframe.contentWindow.document.designMode='on';
}
}
I'm not sure if this fix made it into 1.1.2
HTH,
Catalin
Ian Johnson <[EMAIL PROTECTED]> wrote:
I am using tomahawk 1.1.2. The latest release are you telling me I should go get a later build, because I was really hoping to be able to use a stable release. I'll get it, if I have to, but I was wondering if this is supposed to be a bug on the latest release of tomahawkWhich version of tomahawk are you using? try it out with the latest version, cause this has been resolved as far as i know.
From: Catalin Kormos [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 13, 2006 3:33 PM
To: MyFaces Discussion
Subject: Re: Losing inputText value onMouseOver and onFocus in IE
Regards,
Catalin
Ian Johnson <[EMAIL PROTECTED]> wrote:I'm trying to use the inputHtml component.The problem I am having is that when I submit the page the onMouseOver and/or onFocus event on the text area part (actually in the IFrame before the text area when looking at the generated code) deletes the text. The text is still in the component it just does this through _javascript_ on the page from these events. The name of the function that is invoked is myFacesKupuReactivateDesignMode(this).When the component loads this function runsmyFacesKupuSet()But then the mouse over event clears the textareaiframe.contentWindow.document.designMode='on';This doesn't happen (of course) in firefox but in IE.Unless the recommendation is "official", I'm hesitant to switch to dojo having already implemented this component (which is in tomahawk).I'm sure I can do something to fix thisAnything?
How low will we go? Check out Yahoo! Messengerâs low PC-to-Phone call rates.
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.