Google
 

Hiding Table Rows in DHTML

Sunday, October 24th, 2004

One of the more fun things in DHTML is dynamic manipulation of page content. An interesting question that recently came up at work was hiding and displaying a single table row. The solution I came up with is pretty simply - set the CSS STYLE tag of the table row ...

Another IE JavaScript Difference – TypeOf Operator

Friday, October 22nd, 2004

Another rather annoying thing I just ran across is the difference in the implementation of the "typeof" operator in Javascript operating on functions. If you create a function in the parent window, assign it to a property of the parent window, and then pass it to the child window, IE ...

Validating SELECT Boxes in JavaScript

Thursday, October 21st, 2004

One of the more boring tasks in DHTML is validation of form data and specifically of INPUT and SELECT boxes. Since both have a ".value" property, we can save time and use the same code for checking both: if(selectBox.value == null || selectBox.value.length == 0) { alert('Nothing selected in select box!'); } else ...

Nothing Lasts Forever

Tuesday, October 5th, 2004

An interesting NewsForge article makes a very good point about web standards and browser wars: In my 2002 book, The Online Rules of Successful Companies, I said it was stupid to design Web sites that would work correctly only with the most popular Web browser. Yes, I told readers, over 90% ...