IS 337: Website Administration

Lecture for December 10: Prototype and Ajax Requests

+
-

Topics

Urlacher Shop

Find this code now in the urlacher account on yardley in /home2/urlacher/local/apache2/htdocs.

  • setStyle() method!
  • quickadd.php sets the quantity for a single item toggle
    • Wow #1: not a complete XHTML document!
    • Wow #2: if the HTTP headers were changed, could send back XML or JSON or JavaScript or anything that I wanted my Ajax to handle.
  • Hidden input field to store item's id number. (See idOf(input) JavaScript function.)
  • Ajax.Request toggle
    • Asynchronous
    • Payload: method and parameters are what you think they are.
    • Payload includes callback functions for different events.
  • Other Ajax options toggle
    • Ajax.Updater
    • Ajax.PeriodicalUpdater

Readings and Resources

Creative © 2007 Calvin College and Jeremy D. Frens.
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.