cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <>
Subject Embedded JavaScript in form definition file to create items for selection list
Date Fri, 24 Sep 2004 12:30:21 GMT
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"
  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;

The definition already can have embedded JavaScript for event handling,
so why not here?


View raw message