Monday, July 12, 2010

Files in Directroy using CMD

dir /p -- pause
dir /w -- wide list
dir /s -- sub dir
Source

Increamenting Letters in XLS

A2: =CHAR(CODE(A1)+1)
Source

Compatible CSS for first-child

selector:first-child {declarations}*:first-child + html selector{declarations}*:first-child + html selector{declarations} * html selector{declarations}

Example:
.dateElement td:first-child { width:80px; }
*:first-child + html .dateElement td{ width:80px; }
*:first-child + html .dateElement td{ width:80px; } * html .dateElement td{width:80px;}

Source

Saturday, July 10, 2010

Editable DIV

<div onclick="this.contentEditable='true';"/>

Source

Stylesheets / CSS in Javascript

if(document.styleSheets[index].cssRules) rules=document.styleSheets[index].cssRules

else if(document.styleSheets[index].rules) rules=document.styleSheets[index].rules;

var firstRule=rules[0];

var selector=firstRule.selectorText;

var style=firstRule.style;

Source1

Source2

Maxlength in Javascript

Correct procedure:
element.maxLength=value
Wrong procedure:
element.setAttribute("maxlength",value)

Deleting form datas in Firefox

  1. Open the page which is having the form whose entries has to be deleted.
  2. Mouse over the form entry which has to be deleted, in the drop down showing suggestions.
  3. Press Shift + Delete.
Source