Lab 4

Lab Exercises: Read and save data with database using Ajax

Objective: Be familiar with jQuery ajax method. Be able to write js programs to read and save data with database.

  1. Create a subfolder named as lab4 in your web folder (~/public_html/csc4341). After that, download the sample files from the shared folder located at the CSC server:
    cp /shared/csc4341/lab4/* ~/public_html/csc4341/lab4
  2. Make sure you have a landing page in your lab4 folder.
  3. Study the sample programs and then change database connection to your database. Make sure the web page displays the data from your "student" table. Feel free to modify the styles and heading of the web table.
  4. Post your work on your web site.