blob: 522fa201cd5cf6f978015505b1c56dcb0a8d162d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
var RedirectList = {
addItemsToListBox : function(items) {
var list = document.getElementById('foo');
var item, row, value;
for each (item in items) {
row = document.createElement('listitem');
for each (value in item) {
cell = document.createElement('listcell');
cell.setAttribute('label',value);
cell.setAttribute('value',value);
row.appendChild(cell);
}
list.appendChild(row);
}
},
onLoad : function() {
addItemsToList(items);
}
};
|