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
-
- Download Lab.zip
- Unzip and upload the 4 enclosed files to a folder named lab1 to your website
- Save your html file from exercise 13 as ajax.html
- Modify your code to:
- use AJAX to retrieve students.txt
- display only Pierce students (not Moorpark)
- 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
- Add links to your external js files, json-minified first then ajax, in the head section of your html file
- Upload your html file
- Email your instructor the link to ajax.html