Re: Getting the value or innerHTML of an FCKEditor field using DOM

2006-12-29 Thread michael acadia
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

RE: Getting the value or innerHTML of an FCKEditor field using DO M

2006-12-29 Thread Andy Matthews
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

RE: Getting the value or innerHTML of an FCKEditor field using DOM

2006-12-29 Thread Porter, Benjamin L.
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

RE: Getting the value or innerHTML of an FCKEditor field using DO M

2006-12-29 Thread Porter, Benjamin L.
} 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?

Re: Getting the value or innerHTML of an FCKEditor field using DO M

2006-12-29 Thread Robertson-Ravo, Neil (RX)
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

Re: Getting the value or innerHTML of an FCKEditor field using DOM

2006-12-28 Thread michael acadia
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

Getting the value or innerHTML of an FCKEditor field using DOM

2006-12-28 Thread Andy Matthews
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

RE: JS innerHTML() clearing form fields

2005-02-28 Thread Mosh Teitelbaum
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

Re: OT: JS innerHTML() clearing form fields

2005-02-25 Thread Charlie Griefer
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

OT: JS innerHTML() clearing form fields

2005-02-25 Thread Damien McKenna
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

Re: OT: innerHTML

2002-12-21 Thread S . Isaac Dealey
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

Re: OT: innerHTML

2002-12-21 Thread Christian Cantrell
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

OT: innerHTML

2002-12-21 Thread Robert Polickoski
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

Re: innerHTML

2001-11-23 Thread Douglas L. Brown
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

RE: innerHTML

2001-11-23 Thread Craig Dudley
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

Re: innerHTML

2001-11-22 Thread Bryan Stevenson
-- 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 = ("&

Re: innerHTML

2001-11-22 Thread Douglas L. Brown
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

Re: innerHTML

2001-11-22 Thread Bryan Stevenson
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

Re: innerHTML

2001-11-22 Thread Douglas L. Brown
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

Re: innerHTML

2001-11-22 Thread Bryan Stevenson
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

OT: innerHTML

2001-11-22 Thread Douglas L. Brown
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 "