Skip to content
David Turner edited this page Jul 24, 2015 · 11 revisions

Instructions

  1. In your cse322 workspace, create a folder named ajax. Place all the work you do for this assignment in this folder.
  2. Read steps 1 and 2 of the Mozilla tutorial on Ajax.
  3. Do step 3 of the Mozilla tutorial on Ajax. Place your code in files named step3.html and test.html.
  4. Do step 4 of the Mozilla tutorial on Ajax. Place your code in files named step4.html and test.xml.
  5. Do step 5 of the Mozilla tutorial on Ajax. Place your code in files named step5.html and test.php. You can use the following code for the contents of test.php.
<?php 
    $array = [
        "userData"       => $_POST['userName'], 
        "computedString" => "Hello, " . $_POST['userName']
    ];
    echo json_encode($array); 
?>
  1. Send me an email before the assignment deadline with a link to your workspace. Write ajax assignment in the subject line of the email.

Clone this wiki locally