JDev

Code, javascript, firefoxJune 28, 2007 1:56 pm

"Permission denied to set property XULElement.selectedIndex"

This bug may occur in Firefox when trying to use select() or focus() on an input box in Firefox.

It is fixed by turning autocomplete off:

obj.setAttribute(’autocomplete’,'off’);

 

Code, javascript, firefoxMarch 19, 2007 3:24 pm

According to this article from Danny Goodman, you can’t use the .style property to determine style properties of an element if they not defined in the style attribute attached to the element (inline). If style propeties are defined internally or externally, i.e. defined by style or link tags, you have to use a window.getComputedStyle() method for Firefox or currentStyle property in IE. In this case Firefox returns font information in pixels, e.g. 14px or 18px. IE returns it as a term, e.g. large or small.

Having this information, it is possible to build a function that would increase  element font size dynamically in Firefox:

   function increaseFontSize(elem){
         var compStyle = window.getComputedStyle(elem, "");
         //For this method you have to supply style attribute information the way it is required for css.
         var size = compStyle.getPropertyValue(’font-size’);
        //remove px from the value
        size = size.replace("px", "");
        //define new larger size
        size = parseInt(size)+2;
         // set element style the Javascript way
        elem.style.fontSize = size+"px";       
  }

firefoxAugust 22, 2006 4:34 pm

Close Tab         Ctrl+W,  Ctrl+F4   
Close Window    Ctrl+Shift+W,  Alt+F4   
Move Tab Left (when tab is focused) Ctrl+Left Arrow, Ctrl+Up Arrow
Move Tab Right (when tab is focused) Ctrl+Right Arrow, Ctrl+Down Arrow
Move Tab to Beginning (when tab is focused) Ctrl+Home
Move Tab to End (when tab is focused) Ctrl+End
New Tab             Ctrl+T
New Window          Ctrl+N
Next Tab            Ctrl+Tab, Ctrl+Alt+Right Arrow, Ctrl+Page Down
Previous Tab         Ctrl+Shift+Tab, Ctrl+AltOpt+Left Arrow, Ctrl+Page Up
Select Tab (1 to 9) CtrlAltOpt+(1 to 9)