TGNWG » Posts » Free Script - VisualTagEditor.js | RSS
TheGoodNamesWereGone.com
Oct
16

Free Script - VisualTagEditor.js

Visual Tag Editor is a lightweight Javascript library that will turn any text input field into a tag editor. You can download the code + demo file and use in your projects, commercial or otherwise.

Live Demo
You can try it yourself below. Simply type tags and enter a comma "," to register them. Try the backspace key to delete tags or click them directly to remove them.


Cool eh?

Installation Notes

Run the sample HTML file in the download, then view the source to see how it works. The VisualTagEditor library registers all tag editors with the "VisualTagEditor" CSS class applied, and configures them to run as Tag Editors. A small amount of HTML is required per tag editor - a containing DIV, a hidden INPUT field (which will store your values) and a text field for entry.

The hidden INPUT field stores a list of tags as a comma delimited list, and any edits in the control update this in real time, so if your Form gets posted at any point, the hidden fields will contain the tag list.

The download package includes two zip files - style.css which you can ignore (just contains site styles) and visualtageditor.css which you must include. You should of course make adjustments to this based on your brand / requirements, however positioning and layout styles should be preserved to keep the script working as expeceted.

Visual Tag Editor uses the jQuery library, which is included in the zip file.

Written by Chris Webb @ 08:18 PM | Comments (0) | Short URL
Carelessly tagged: Javascript, Tags, jQuery | Sections: Web Client Technologies, Free Stuff

Comments

Why not engage in an exchange of swift, witty retorts with the author? Add your asinine comments here

Post Comment

No comments yet
Be the 1st to comment and win: nothing!

Log in or Register to comment
Your
Comment:
Sign in to comment
Insert: Evil Grin Wink Grin Happy Smile Surprised Tongue Unhappy

 

Subscribe to the RSS Feed
© 2010. TheGoodNamesWereGone.com