[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xml-cocoon-dev
Subject:    RE: Embedded JavaScript in form definition file to create items for selection list
From:       "Bart Molenkamp" <b.molenkamp () bizzdesign ! nl>
Date:       2004-09-27 6:48:18
Message-ID: 5E091A68F794974CAF431CA31F5AF2CC11E975 () server ! bizzdesign ! nl
[Download RAW message or body]

 
> Bart Molenkamp wrote:
> 
> >Hi all,
> >
> >Would it possible, or a good idea to be able to build a selection
list
> >with some embedded javascript code? E.g.
> >
> ><fd:selection-list type="javascript" value-path="value"
> >label-path="label">
> >  var data = new Object();
> >
> >  data.cityList = new Array(2);
> >  data.cityList[0] = {value:"AL", label:"Alabama"};
> >  data.cityList[1] = {value:"AK", label:"Alaska"};
> >
> >  return data;
> ></fd:selection-list>
> >
> >The definition already can have embedded JavaScript for event
handling,
> >so why not here?
> >
> >
> 
> Have you considered <fd:selection-list type="flowjxpath"> ?

Yes. The one that I have in mind is pretty much the same, except that
the list is not provided via flow, but from the javascript embedded in
the form definition. That would allow me to handle many different forms
with the same flow code.

> 
> Sylvain
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic