Week 09: AJAX, JSON and APIs

Lecture

This week will be discussing AJAX (Asynchronous JavaScript and XML) and the data format JSON (JavaScript Object Notation) to load data into our webpage without reloading the entire page. We will also talk about APIs (application programming interfaces) allow your website to interact with other third party databases like Facebook, Twitter and Instagram to pull in live data and present it on your own website. Today we will be focusing on the Open Weather Map API and the Facebook API.

In Class Assignment

TBD

Homework

TBD

Week 08: jQuery

Lecture

There are a number of JavaScript libraries and frameworks out there that make it much easier for you to program using JavaScript. jQuery is by far the most popular one. Essentially, jQuery is just pre-written functions, objects and other helpful JavaScript code that we can just reference rather than writing everything from scratch. Today we will be going over the basics of jQuery.

In Class Assignment

TBD

Homework

TBD

Week 05: Document Objects and Events

Lecture

Before the lecture students will be presenting their designs for their tile matching game. For the lecture will be talking about the document object model (DOM) and better understand how to use JavaScript to interact with the DOM tree. We will also be covering events that can trigger code, i.e. on click, on load, on keypress, etc.

In Class Assignment

Create a grid of images and trigger an different alert when the user clicks on it. Also using change the cursor into an image of your choosing.

Homework

For our midterm we will be programming a simple tile matching game like this one. For homework I want you to design the static version of this game using either Photoshop or Illustrator. Pick a theme for this game and have the design reflect this theme. Design is part of your grad so really put some thought an effort into this. Be prepared to present your designs next week. Your game must include at least 8 tiles, have a timer, counter and a play button.