// reset any previous bindings this.setAttribute("__component_contents",[]); Debug.write("autocompletecombobox got datapath = ",this.datapath.xpath); Debug.write("The float box : ",myFloatBox); myFloatBox.setDatapath(this.datapath.xpath); var isShowing = myFloatBox.getAttribute("visible"); if(isShowing) { myFloatBox.setAttribute("visible",false); } else { var theDictionary = this.getAttribute("__component_contents"); for(item in theDictionary) { var the_object = theDictionary[item]; the_object.setAttribute("visible",true); } myFloatBox.setAttribute("visible",true); } Debug.write("focused.."); this.setSelection(0,this.getText().length); Debug.write("clicked.."); this.setSelection(0,this.getText().length); 46) { // warning numlock seems to cause a focus here also... // todo lookup the numlock keycode... classroot.myFloatBox.setAttribute("visible",true); var theInput = this.getText(); this.setAttribute("actuallyTyped",theInput); Debug.write( "What was actually typed... "+this.getAttribute("actuallyTyped")); computeBox(theInput); } ]]> Debug.write("wtf? classroot = ",parent); Debug.write("floatinglist got data = ",this.data); var childXPath = this.datapath.xpath + "/"+owner.contentpath; this.replicated_textitem.setDatapath(childXPath); parent.owner.getAttribute("__component_contents")[this.data] = this; Debug.write("onselect ",this.data); parent.owner.theeditor.actual.setText(this.data); var actualTyped = parent.owner.theeditor.actual.getAttribute("actuallyTyped"); parent.owner.theeditor.actual.setSelection(actualTyped.length,this.data.length); Debug.write("onclick ",this.data); this.parent.setAttribute("visible",false);