OK, maybe I shouldn't have said you "need" to use the FCKeditorAPI, but
since it's built-in to FCKeditor and does exactly what you need, it
might be easier than writing your own custom functions.
See: http://wiki.fckeditor.net/Developer%27s_Guide/Javascript_API
There are a number of methods in
Good thoughtI haven't checked it.
-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: Friday, December 29, 2006 2:32 AM
To: CF-Talk
Subject: Re: Getting the value or innerHTML of an FCKEditor field using
DO M
What does Firebug show
I ran into the same issue. Here are a couple javascript functions used
by another window that is opened and updates that field. You could
probably modify it to work for you.
function getEditorContent(instanceName) {
editor_frame =
opener.document.getElementById(instanceName
} else {
return '';
}
}
-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: Friday, December 29, 2006 2:32 AM
To: CF-Talk
Subject: Re: Getting the value or innerHTML of an FCKEditor field using
DO M
What does Firebug show it as?
Sent: Thu Dec 28 19:29:03 2006
Subject: Getting the value or innerHTML of an FCKEditor field using DOM
I thought this would be fairly straightforward but it appears to be causing
me some distress. I need to get the value of an FCKEditor field for
transmission using AJAX. However, when I reference
You need to use the FCKeditorAPI to get at the value:
oEditor = FCKeditorAPI.GetInstance('art_article');
myValue = escape(oEditor.GetXHTML(oEditor.FormatOutput));
I know this is in the documentation somewhere, but I found it too long
ago to point you to the specific part.
HTH,
Michael
--
micha
I thought this would be fairly straightforward but it appears to be causing
me some distress. I need to get the value of an FCKEditor field for
transmission using AJAX. However, when I reference the fields ID, I get a
blank result when there is definitely content in it. Can someone shed some
light
Damien McKenna wrote:
> I'm using innerHTML() to append fields to a form, its working pretty
> well so far. Except for one biggie. When I use innerHTML() the
> information already filled into the form is cleared. Is there any way
> around this, beyond storing and re-inserting
you should be able to do:
document.getElementById('foo').innerHTML += more stuff here;
Just my $0.02... innerHTML is not standards compliant and you could
run into some issues down the road. Might want to look into using the
DOM and methods like createNode and the like.
On Fri, 2
I'm using innerHTML() to append fields to a form, its working pretty
well so far. Except for one biggie. When I use innerHTML() the
information already filled into the form is cleared. Is there any way
around this, beyond storing and re-inserting the data into the fields in
my script? T
I'd agree -- JavaScript for any browser I'm familiar with had the Option
class afaik before innerHTML and it's always been very nice / clean and easy
to use. I use innerHTML but never for select boxes.
> I'm not sure exactly what the problem is, but I might try
> an ap
I'm not sure exactly what the problem is, but I might try an approach
that does not use innerHTML if possible as I think it simplifies the
code. The example I put together is kind of long, so rather than
including it, you can view it here:
http://cantrell.dyndns.org/~cantrel
The select element it is referencing is:
Select...
The problem is that on the first iteration through the loop it
chops off the opening tag of the pre-existing entry
leaving only Select... plus the full entry of that
iteration. I have tried setting a variable to the existing
innerHTML plu
Thanks,
I did want it to work w/ NS6 but was only checking for appName
Doug
- Original Message -
From: "Craig Dudley" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, November 23, 2001 2:26 AM
Subject: RE: innerHTML
> If y
If you use;
document.getElementById("show_price_top").innerHTML = ("" + total + "");
Then it will work in IE5+ and NN6+ aswell
-Original Message-
From: Douglas L. Brown [mailto:[EMAIL PROTECTED]]
Sent: 22 November 2001 19:06
To: CF-Talk
Subject: Re: inn
-- Original Message -
From: "Douglas L. Brown" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, November 22, 2001 11:05 AM
Subject: Re: innerHTML
> Thnks for the help. I finally got it, I had to do
>
>
> show_price_top.innerHTML = ("&
Thnks for the help. I finally got it, I had to do
show_price_top.innerHTML = ("" + total + "");
DB
- Original Message -
From: "Bryan Stevenson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, November 22
From: "Douglas L. Brown" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, November 22, 2001 10:55 AM
Subject: Re: innerHTML
> Well it is a JS variable, how would this be accomplished?
>
>
> DB
>
>
> - Original Message
Well it is a JS variable, how would this be accomplished?
DB
- Original Message -
From: "Bryan Stevenson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, November 22, 2001 10:45 AM
Subject: Re: innerHTML
> Well for starters in
Well for starters innerHTML only works in IE :-(
Is "price" a CF variable or a JavaScript variable? If it's CF then you
need the good old #price# in there. You can also ditch the = ("price"); and
make it = "#price#";
HTH
Bryan Stevenson
VP & Director
I have a script that calculates "price" and I need it to set the
innerHTML of a tag, I thought I could just say
show_price_top.innerHTML = (price);
but that dont work, It works if I just say
show_price_top.innerHTML = ("price");
but it just puts the string value of "
21 matches
Mail list logo