Re: cftextarea: how to count characters? maxlength

2008-04-19 Thread denstar
Yo paul, if you need help, hit me up private-like, but there is a plugin for FCKEditor that counts both the number of HTML chars, and non-html chars (using a bit of reg-ex). It'll even prevent more entry when the count gets too high, IIRC. It's been a while, but I can probably patch it back up if

Re: cftextarea: how to count characters? maxlength

2008-04-19 Thread Paul Ihrig
ok this works, is slow and dosnt update from the cftextarea, unless i type into the regular textarea, then it does... if any one knows a better way to count the characters in a cftextarea where richtext is true, please let me know.. ~~~

Re: cftextarea: how to count characters? maxlength

2008-04-19 Thread Paul Ihrig
was meant to go here Characters remaining how can i do Len() inside the bind? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;2515

Re: cftextarea: how to count characters? maxlength

2008-04-19 Thread Paul Ihrig
yeah i am not getting it scipt then form fields below var mlength=8000 var oEditor = FCKeditorAPI.GetInstance('descLong'); var sigcnt2 = oEditor.GetXHTML(true); if (sigcnt2.length==0) { alert('You need to enter something for the body of your story.'); return false; }

Re: cftextarea: how to count characters? maxlength

2008-04-18 Thread Kris Jones
theBody is the field name. theBodyTest is a javascript variable that's holding the XHTML content returned. Make sense? (And no, you're not being a dumb ass...) Cheers, Kris > hey Kris.. > sry to be a dumb ass > > but is 'theBody' the form name? > is 'theBodyTest' the cftextarea name? > > >

Re: cftextarea: how to count characters? maxlength

2008-04-18 Thread Paul Ihrig
hey Kris.. sry to be a dumb ass but is 'theBody' the form name? is 'theBodyTest' the cftextarea name? its such a cool js just want to be able to use it... ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic re

Re: cftextarea: how to count characters? maxlength

2008-04-18 Thread Kris Jones
There is some info in the fckeditor forums on getting the correct count. I think the CF8 cftextarea is repackaging fckeditor, and if so, this should work (although I haven't tried it in CF8 myself). You need to reference the object.GetXHTML() function. The example below is just for checking for any

Re: cftextarea: how to count characters? maxlength

2008-04-18 Thread Paul Ihrig
ginal Message- > From: Paul Ihrig [mailto:[EMAIL PROTECTED] > > Sent: Friday, April 18, 2008 10:00 AM > To: CF-Talk > > > Subject: Re: cftextarea: how to count characters? maxlength > > i can bobby's code to work with a regular cftextarea, but not the

RE: cftextarea: how to count characters? maxlength

2008-04-18 Thread Andy Matthews
If you've got Firebug installed in Firefox, you should be able to use the DOM portion of FB to pinpoint the reference to the iframe. -Original Message- From: Paul Ihrig [mailto:[EMAIL PROTECTED] Sent: Friday, April 18, 2008 10:00 AM To: CF-Talk Subject: Re: cftextarea: how to

Re: cftextarea: how to count characters? maxlength

2008-04-18 Thread Paul Ihrig
7;ll also have to make sure you point your target at the underlying code > window (an iframe I think) and not the display window or your count will be > off. > > > -Original Message- > From: Paul Ihrig [mailto:[EMAIL PROTECTED] > Sent: Friday, April 18, 2008

RE: cftextarea: how to count characters? maxlength

2008-04-18 Thread Andy Matthews
ou point your target at the underlying code window (an iframe I think) and not the display window or your count will be off. -Original Message- From: Paul Ihrig [mailto:[EMAIL PROTECTED] Sent: Friday, April 18, 2008 8:34 AM To: CF-Talk Subject: cftextarea: how to count characters? maxl

RE: cftextarea: how to count characters? maxlength

2008-04-18 Thread Bobby Hartsfield
: Paul Ihrig [mailto:[EMAIL PROTECTED] Sent: Friday, April 18, 2008 9:34 AM To: CF-Talk Subject: cftextarea: how to count characters? maxlength hey guys i am using cf8 and in my cftextarea richtext=true and maxlength="8000" is there a js or function that would show the user how many charecter

Re: cftextarea: how to count characters? maxlength

2008-04-18 Thread Eric Bowling
Here is a quick snippet of code to show how many characters are used out of 8000 in a textarea and displays it. It could be modified to fit your needs. Eric function update(textareaObject) { var charsTotal = 8000; var charsUsed = textareaObject.value.length; document.getElementById('charsu

Re: cftextarea: how to count characters? maxlength

2008-04-18 Thread Les Mizzell
Paul Ihrig wrote: > hey guys i am using cf8 and in my cftextarea richtext=true and > maxlength="8000" > is there a js or function that would show the user how many charecters > the have used and how many are left in a textarea or text field? I'm curious on this too - I've found a number of counte

cftextarea: how to count characters? maxlength

2008-04-18 Thread Paul Ihrig
hey guys i am using cf8 and in my cftextarea richtext=true and maxlength="8000" is there a js or function that would show the user how many charecters the have used and how many are left in a textarea or text field? thanks much -paul ~~~