Thanks Jochem,


The problem was that we were escaping the characters so to make it safe for
_javascript_ and it added the extra spaces.  Once we removed the escaping it
worked correctly.


Mario

-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 10:23 AM
To: CF-Talk
Subject: Re: OT: COunt Characters with _javascript_ on a CFMX page

Ciliotta, Mario wrote:
>  
> I am having a problem on a page where I have a text area that user can only
> type in 8000.  I provide a count of each character used as they type so they
> know were they are up to.  The problem is that all of a sudden the code is
> counting a <space> as 3 characters and a new line as 6 characters.  The
> original code worked correctly under CF4.5 but seems like it is not under
MX.

Is this behaviour consistent across browsers? Which charset are
you using?

Jochem

--
I don't get it
immigrants don't work
and steal our jobs
     - Loesje
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to