SUCCEED

   

programmingHS 2015
Shodor > SUCCEED > Workshops > Archive > programmingHS 2015

In this class the students learned how AJAX can be applied to a program. JavaScript has trouble sending more than one thing at a time, so AJAX can send a request and then move on, without having to wait for the response. The students learned some more about this, and then worked independently while Keith and Phil shoulder surfed. Their project was to write code that gets code from a server and verify it. Then they moved to a similar program, but this new program used JSON instead of a string as an input. JSON returns an array. They got a symbol from a “stocks.php” page and then parsed it using JSON: var data = JSON.parse(request.responseText);