Recent Posts

Archive

2012

2011

2010

2009

2008

2007

2006

Tags

Authors

Brad Montgomery

Feeds

RSS / Atom

Blog

Viewing posts tagged ajax

A for AJAX - OR - Dynamically generating options for a select element.

July 7th, 2009 In: None By: Brad Montgomery 3 comments

I don't do a lot of AJAXy web development, but when I do, I usually make use of Prototype. I've recently created a form containing a <select> element whose <option>s are dynamically generated via an AJAX request. The problem however, is that a selected option was already in the form. So before the AJAX request, my HTML looked something like this:

read more

A simple Django example with Ajax

Nov. 11th, 2008 In: None By: Brad Montgomery 19 comments

I often employ Ajax in HTML forms in order to update the list of options in select elements. For example, suppose a form consists of two select elements, and the options in the second depends on the values selected in the first. A simple example of this might be an Automobile Rental website that lets you choose the type of vehicle as well as the color. Not all vehicles come in the same color, though, so you might have a form that looks similar to the following:

read more

Page 1 of 1:

  • 1