Archive for the ‘JavaScript’ Category


I was browsing some forums over the weekend and someone had asked how you can validate an ASP.NET CheckBoxList on the client-side. The natural instinct would be to use the RequiredFieldValidator control. Unfortunately, this control is not compatible with the CheckBoxList

The only way to properly accomplish this is by using Javascript, or creating a server-side user control that has some Javascript built into it. So here’s my solution:

Read the rest of this entry »

Classes in JavaScript

on October 10, 2010 | Filed Under JavaScript | No Comments »

One of the most frustrating things about JavaScript (besides browser compatibility) is that there is really no way to define a class. That is, not without a little counter-intuitive work.

For today’s lesson, we’re going to take a theoretical car and simulate a trip down a bumpy road. If all four tires survive the trip, we’ll have a successful trip. If not, our trip will have failed.

Read the rest of this entry »

I have decided that since a big portion of my time is programming AJAX-driven web pages, my first real blog here on DevPaper should be about the XMLHttpRequest object in JavaScript.

Read the rest of this entry »