previous | index | next

Element Fading

The processZipCodeSelection function must take the response string and split out the city part from the state part for display:
      function processZipCodeSelection(req) {
          var cityAndState = req.responseText.split(',');
          setCityAndStateFields(cityAndState[0], cityAndState[1]);
          Fat.fade_element("form:city");
          Fat.fade_element("form:state");
      }
It places the city and state in their proper fields and provides a visual cue that the fields have changed by slowly fading the background color.

This is accomplished with the Fade Anything Technique library:


previous | index | next