BLOG: Mitch Wilson, Austin TX Web & Multimedia Developer – Austin, TX

1Jan/103

maxChar jQuery Plugin: New Release 0.3

Happy New Year!

I can't believe I'm saying this ... due to popular demand ... I have updated maxChar, my configurable jQuery plugin that adds a character counter to Web forms.

Example character counter

New and Improved

New features added in 0.3.0 are:

  • Feature change: Displays negative characters when past limit rather than truncating characters in form input.
  • New option: truncate - If true, on form submit truncates submitted value down specified by limit. Does not change (respects) user text in form field. Default is true.
  • Bug fixes: Fixed serveral issues related to removing over-the-limit characters in the form field.
  • Overview, Instructions and Examples

    See the main page, maxChar jQuery Plugin.

    Download maxChar 0.3.0

    Download from the jQuery plugins repo maxChar release page.

    Bug Fixes

    For information about the bugs fixed, see the maxChar bugs page.

    Share and Enjoy:
    • Print
    • Digg
    • Sphinn
    • del.icio.us
    • Facebook
    • Mixx
    • Google Bookmarks
    • Blogplay
    • RSS
    • Twitter
    Filed under: Geek Out Leave a comment
    Comments (3) Trackbacks (0)
    1. Thought: several people reported issues with missing scrollbars in the textarea. Although I my plugin is not the cause, I can offer a possible solution.

      To get scrollbars, the textarea element needs a rows attribute. So, I could add an option for the plugin to add a rows attribute with a default value of something like 5 to the textarea, if the textarea does not already have a rows attribute. Adding a rows attribute fixes the scrollbar issue.

      Thoughts?

    2. The truncate doe not work for me

    3. Mauricio,

      Can you post your code? I would be happy to help.

      Also, keep this in mind: in new versions truncate is deprecated and will be removed in a future version. The plugin will be all about counting the characters, displaying the count, and providing options such as css class changes, timing, etc. All other tasks will be left to other plugins.


    Leave a comment


    No trackbacks yet.