Clip Art Lab 3
Pierce Home
Computer Science 555 Website Development using JavaScript and AJAX - 3 Units
Section:
3179
Instructor:
Brad Gilbert
Pierce Mailbox:
612
Email:
pierce@wavethunder.com
Wednesday Office Hours:
5:00 -   5:40 PM COSC 1507
Wednesday Lab:
5:45 -   7:50 PM COSC 1507
Wednesday Lecture:
7:55 - 10:00 PM MATH 1511
Other classes:
CS-575
lab 3

Lab 3

AJAX
  1. Download Lab.zip
  2. Unzip and upload the 4 enclosed files to a folder named lab1 to your website
  3. Save your html file from exercise 13 as ajax.html
  4. Modify your code to:
    1. use AJAX to retrieve students.txt
    2. display only Pierce students (not Moorpark)
  5. Notes:
    • copy and paste the functions:
      xProcessRequest, xDisplayError, xDisplayJSONStudents, xJSON_Click
    • delete the function header and closing } from xJSON_Click so that only code from the body of the function is left
    • Change this.href to "students.txt"
    • Besides the p tag with the id xResponseDiv, add a p tag with the id xErrorDiv to your HTML
  6. Add links to your external js files, json-minified first then ajax, in the head section of your html file
  7. Upload your html file
  8. Email your instructor the link to ajax.html
Brad Gilbert · Fall 2011
Computer Science · Pierce College · Woodland Hills CA · 818-719-6401