From 144f16a71f7289bb891c52995061aee21e3e08f9 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Fri, 28 Mar 2008 17:02:18 +0100 Subject: remove autocomplete and use autosuggest instead Signed-off-by: Andreas Unterkircher --- autocomplete/js/ieselect.js | 85 --------------------------------------------- 1 file changed, 85 deletions(-) delete mode 100644 autocomplete/js/ieselect.js (limited to 'autocomplete/js/ieselect.js') diff --git a/autocomplete/js/ieselect.js b/autocomplete/js/ieselect.js deleted file mode 100644 index 1715580..0000000 --- a/autocomplete/js/ieselect.js +++ /dev/null @@ -1,85 +0,0 @@ -function Property(name, value) { - this.name = name; - this.value = value; -} - -var defaultSelectProps = new Array(); - -defaultSelectProps[defaultSelectProps.length] = new Property("VariousPropertyBits", "726624571"); -defaultSelectProps[defaultSelectProps.length] = new Property("DisplayStyle", "7"); -defaultSelectProps[defaultSelectProps.length] = new Property("FontName", "Arial"); -defaultSelectProps[defaultSelectProps.length] = new Property("FontHeight", "200"); -defaultSelectProps[defaultSelectProps.length] = new Property("ShowDropButtonWhen", "2"); -defaultSelectProps[defaultSelectProps.length] = new Property("FontHeight", "200"); -defaultSelectProps[defaultSelectProps.length] = new Property("ScrollBars", "0"); - -function replaceIESelect(id, selectProps) { - if (selectProps==null) selectProps = defaultSelectProps; - if (document.all&&document.getElementById) { - var sel = document.getElementById(id); - var parent = sel.parentNode; - - var obj = document.createElement("object"); - var paramSuccess = true; - - try { - for (var j in selectProps) { - var param = document.createElement("param"); - param.setAttribute("name", selectProps[j].name); - param.setAttribute("value", selectProps[j].value); - obj.appendChild(param); - } - } catch(er) { - paramSuccess = false; - } - - with (obj) { - setAttribute("classid","clsid:8BD21D30-EC42-11CE-9E0D-00AA006002F3"); - setAttribute("id", "comp_" + sel.name); - setAttribute("width", sel.offsetWidth); - setAttribute("height", sel.offsetHeight); - if (!paramSuccess) Style=2; - } - - var input = document.createElement("input"); - with (input) { - setAttribute("id", sel.name); - setAttribute("name", sel.name); - setAttribute("type", "hidden"); - setAttribute("value", obj.name); - } - - obj.options = new Array(); - - for (var j=0; j