Monday, June 6th, 2005

Multiple Text Applicator (MTA) 0.1

Category: Library

An initial version of a small library that gives you list management in a widget has been released. It is called the Multiple Text Applicator (MTA).

Example

<script>var mta = new MTA(‘mta’,null,’field’,’button x’,’button add’);</script>

<textarea id=”questions” class=”mta” delim=”newline”>apple
orange
banana
</textarea>

With this, you get a tadalisting that allows you to edit/delete lists.

A list via MTA

Posted by Dion Almaer at 4:29 pm
3 Comments

+++--
3 rating from 6 votes

3 Comments »

Comments feed

This is convient widget, anyone tried an implementation that uses a dropdown box instead of a text field for the user input? The code looks simiple enough to modify but curious if anyone has already tried.

Kudos to the author.

Comment by jake — June 7, 2005

Jake,

I’m trying to figure out what you mean. I am thinking that you mean a multiple text display with the options and separate add/delete buttons. I’ve used those many times before but find them more clunky.

Of course, you could be meaning that you want to offer a select box on each row. That’s easy enough to do, for sure. The question is what is the source DOM material to work for.

The MTA works now because it degrades to a simple text box that’s delimited. To do something with a drop down would, hopefully, mean that you had a drop down in the source before hand (else you would have to pass in the list of select options upon initialization).

I’ve got a new version that uses some more DOM and also completes support for item level size limits (no item longer than 75 chars) as well as total size limits (all items not longer than 1000 chars).

Greg

Comment by Gregory Narain — June 7, 2005

Greg,

I am refering to your second option of offering a select box on each row. I am still thinking through how I would implment it.

Jake

Comment by jake — June 8, 2005

Leave a comment

You must be logged in to post a comment.