Archive for April, 2009

Mix JSTL and JavaScript to build a select list

Thursday, April 30th, 2009

This article describes how to build a list of

Use Prototype to select all elements by class

Wednesday, April 22nd, 2009

Prototype has a number of handy utility methods. One of my favorites is the “$$” method, which allows you to select elements by class name. As with most other Prototype functions, this one can be chained to do some really cool stuff.
(more…)

Using Google JSON with Prototype and Java

Friday, April 10th, 2009

Widely hailed as the successor to XML in the browser, JSON aspires to be nothing more than a simple and elegant data format for the exchange of information between the browser and server. In this example we will learn how to create a JSON object on the client using JavaScript (and Prototype), and how to process that same JSON object on the server using Java. The examples use the Google JSON (or GSON) libraries for the JSON parsing.
(more…)

Cross-browser event handler using Prototype

Sunday, April 5th, 2009

Event handling in JavaScript is a great thing. Unfortunately, there are some cross-browser issues with event handling (IE rant omitted). Once again, Prototype comes to the rescue. (more…)