Hi,
  For a textfield with a limit, I have a counter  which shows the
number of remaining characters in a span.

Initially, for each keyup event, I was updating the count using
nodeValue function. But, as the page became large, the update of the
text by the browser has become very slow.

It seems for every text change, the browser calculates the redisplay
position of other elements on the page, even though its not needed.

What trick can I use to speed up the text update?

Thanks!
-- 
Surendra Singhi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to