From 502c24f18cdfa0f808d9383313bb4f965c7fb11f Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Mon, 21 May 2007 22:03:05 +0000 Subject: Redirector git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@53 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/redirectList.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 chrome/content/redirectList.js (limited to 'chrome/content/redirectList.js') 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); + } + +}; -- cgit v1.2.3-70-g09d2