Archive for March, 2009

Filter a dropdown list using JavaScript and Prototype

Wednesday, March 25th, 2009

This article describes a technique that takes input from a text field and populates a dropdown list that matches the input text. This is similar to the “auto-complete” feature that is commonly used for search fields.
(more…)

Mixing JSP scriptlet code and JavaScript

Saturday, March 14th, 2009

It’s easy to mix Java scriptlet (JSP) code and JavaScript code. Here’s how you can embed scriptlet code in your JavaScript code, using a simple example of setting a JavaScript variable: (more…)