[Cartoweb-users] Populate aselect from db

Giovanni Virdis g.virdis at riteco.it
Fri Jun 6 06:55:58 EDT 2008


Hi, 

if is possibile i want populate the select item from db. I have modify the dhtmlEdit.js file to show a select item with a fix value

 

var authorisedOptionsList = new Array(1, 2, 3);

var authorisedOptionsListLabel = new Array('Strutture pubbliche', 'Strutture per il commercio', 'Strutture militari');

 

How i can populate this item  by db select?

 Is possible chanche the value of second select item when I change the value of first select item ?

Example

 

1° Select value:

 

1, 'America'
2, 'Europa'

3, 'Asia'

4, 'Oceania'

5, 'Africa'

 

2° Select value:

 

1, 'Giappone'
2, 'Cina'
3, 'Mongolia'
4, 'Stati Uniti'
5, 'Canada'
6, 'Messico'
7, 'Italia'
8, 'Spagna'

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080606/fd33b332/attachment.html


More information about the Cartoweb-users mailing list