--- Adam Judson <[EMAIL PROTECTED]> wrote: > Inside tamper data I insert entry fields into list items, into a list box. > > In Firefox 3, I can't seem to use the mouse to give the entry field > focus, I need to press tab once the list item has focus. It used to > work... > > Any one else seen this, or have a quick fix? Any one have the URL for > Firefox 3 XUL etc. changes handy? > > Adam > > The code - from > http://www.mozdev.org/source/browse/tamperdata/src/chrome/content/tamperPopup.js?rev=1.14;content-type=text%2Fplain > > addDetailRow : function(parent, type, name, value, dataObjIndex) { > var item = document.createElement('listitem'); > item.setAttribute("tamper.name", name); > item.setAttribute("tamper.value", value); > item.setAttribute(TamperPopupDialog.DATA_OBJECT, dataObjIndex); > item.appendChild(this.createCell(name)); > var ef = this.createEntryField(name, value); > ef.setAttribute(TamperPopupDialog.DATA_OBJECT, dataObjIndex); > item.appendChild(ef); > parent.appendChild(item); > return ef; > }, > > createEntryField : function(name, text) { > var cell = null; > cell = document.createElement("textbox"); > cell.setAttribute("tamper.name", name); > cell.setAttribute("tamper.ef.name", name); > cell.setAttribute("value", text); > cell.setAttribute("onchange", "TamperPopupDialog.valueChanged(this);"); > return cell; > },
I don't see any focus() methods above. Did you try cell.focus()? In any case, I also had focus problems with PasswordMaker on FF3 but for a password field textbox. I was told to use setFocus() as the callback to setTimeout(). It worked. What a hack. setTimeout(0, "cell.focus();"); _______________________________________________ Project_owners mailing list [email protected] https://www.mozdev.org/mailman/listinfo/project_owners
