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

Tuesday, January 12, 2010

16 jobs where salaries will decline in 2010

  1. Web developer
  2. Data warehouse analyst
  3. Developer/Programmer analyst
  4. Systems administrator
  5. Web designer
  6. Help desk Tier 3
  7. Software developer
  8. Business intelligence analyst
  9. QA associate/analyst
  10. Project manager
  11. Business systems analyst
  12. Help desk Tier 1
  13. Database developer
  14. Database administrator
  15. Desktop support analyst
  16. PC technician

Tuesday, January 5, 2010

Initializing parameterized function in onclick in javascript

var htmlElement=new Function('functionName('+param1+')');
or
htmlElement.onclick=(function(param1){return function(){functionName(param1)}})(param1);