aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/redirectList.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/content/redirectList.js')
-rw-r--r--chrome/content/redirectList.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/content/redirectList.js b/chrome/content/redirectList.js
new file mode 100644
index 0000000..522fa20
--- /dev/null
+++ b/chrome/content/redirectList.js
@@ -0,0 +1,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);
+ }
+
+};