Leszek Gawron wrote:

On Wed, Nov 19, 2003 at 05:53:57PM +0100, Sylvain Wallez wrote:


Hi all,

Woody goodie of the day, I wrote a new styling for multivalue fields. We already had list-type="checkbox", list-type="listbox" and we now have list-type="double-listbox".

This displays two lists with buttons between them to switch items between the lists. The selected values are on the left.

This again relies on Matt Kruse's JS libraries (thanks Matt!) and required to add a generic infrastructure in the woody JS library to register "handlers" that are called either during "onload" of the document or "onsubmit" of the form.

You can have a look at it in the "Boolean fields" tab in the "Various" example.


Would it be possible to add the appropriate javascript code to the page only
if a certain feature is being used? Including all the javascript code in the
page makes it more heavy and also a bit messy.



Most of the JS code has been moved in the "woody-lib.js" file, and the produced HTML now contains only calls to these functions.


Is this what you meant, or did I missed something?

Sylvain

--
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com




Reply via email to