Hackbright Front-End Web Development | Week 6

Monday:

  • jQuery
    • $ is a function that takes a string or html element as an argument and returns a jQuery object
      • ex: $(“#home”).css(“background”, “red”);
      • $(“p”).addClass(“highlight”);
  • Exercises
    • hide/show divs when link is clicked: see here

Wednesday:

  • AJAX – asynchronous JavaScript and XML
    • allows you to make a call to the server without refreshing the page
  • 200 means ok
  • 400 means bad
  • GET – retrieving value from server
  • POST – posting value to server
  • Exercises

Homework:

  • replace JavaScript in portfolio with jQuery
  • add a class project to the portfolio