Any idea why this would return null?

document.getElementById("content1___Frame").contentWindow.document.getElemen
tById("xEditingArea")


I viewed source of the editor at the same url used to create it and
xEditingArea is indeed the ID of the td im looking for


document.getElementById("content1___Frame").contentWindow.document returns
an object but anything I try to read from the object is null...


..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

 

 


-----Original Message-----
From: Gareth Hughes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 05, 2006 11:18 AM
To: CF-Talk
Subject: Re: FckEditor / JS

You'll need to pull this apart to get it to work for you but below is the JS

I use to check an FCK instance isn't empty. So, you should be able to update

your div with secondFrame.body.innerHTML.

    firstFrame = 
document.getElementById("FCKeditor1___Frame").contentWindow.document;
    secondFrame = 
firstFrame.getElementById("eEditorArea").contentWindow.document;
    if ((secondFrame.body.innerHTML==null) || 
(secondFrame.body.innerHTML==''))
    {
     alert("Stupid user alert");
    }


----- Original Message ----- 
From: "Bobby Hartsfield" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Tuesday, September 05, 2006 3:48 PM
Subject: OT: FckEditor / JS


What I have is a textarea. As you type in the text area, a div tag is
updated with the textarea's content creating a 'live preview'. I need to
change that textarea to the FCKEditor but keep the live preview.

The problem is that I don't have the same control over the onchcnage and
onkeyup attributes of the hidden field that the FCKEditor creates as I do
the normal textarea.

I tried using setAttribute('onchange'), 'myfunction()') on the hidden field
but no such luck.

Can anyone offer any help here?


....:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com






-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/437 - Release Date: 9/4/2006








~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252061
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to