Google
 

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 ...

Changing Web Page Content on the Fly

Tuesday, October 12th, 2004

An interesting problem that comes up often is a need to change a part of a web page without reloading the entire page. This is especially true when dynamic content like a list needs to be generated from a database and included in the page. The solution to this is ...