Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

SymfonyCasts

JavaScript for PHP Geeks

via SymfonyCasts

Overview

You already know and write JavaScript... or really jQuery. But as JavaScript takes on more of your life, it's time to take your game to the next level! In this tutorial, we'll do just that by diving into a bunch of pieces of JavaScript you may "kinda" understand, or which might be new to you altogether! This includes:

  • Event Bubbling & DOM Events
  • The DOM Element Object
  • JavaScript Objects
  • Instantiating objects with the prototype
  • Understanding the mystical "this" & .bind
  • Understanding Self-Executing Functions
  • Delegate Selectors will save your Life
  • Client-side templating
  • PROMISES!

Let's not just write JavaScript, let's understand what's going on!

Syllabus

  • Lift Stuff! The js- Prefix
  • (document).ready() & Ordering
  • All about Event Bubbling
  • The Event Argument & stopPropagation
  • The DOM Element Object
  • The Magical this Variable & currentTarget
  • A Great Place to Hide Things! The data- Attributes
  • Organizing with Objects!
  • "Static" Objects & the this Variable
  • Getting to the bottom of the this Variable
  • Fixing "this" with bind()
  • Immediately Invoked Function Expression!
  • The window Object & Global Variables
  • Instantiatable Objects & Constructors
  • The Object prototype!
  • prototype Versus __proto__
  • Extending the Prototype
  • AJAX Form Submit: The Lazy Way
  • Old-School AJAX HTML
  • Delegate Selectors FTW!
  • Proper JSON API Endpoint Setup
  • POSTing to the API Endpoint
  • Handling JSON Validation Errors
  • Clearing the Form, Prepping for a Template
  • JavaScript Templating
  • Full-JavaScript Rendering & FOSJsRoutingBundle
  • All About Promises!
  • Catching a Failed Promise
  • Promise catch: Catches Errors?
  • Making (and Keeping) a Promise
  • Promise Chaining
  • SweetAlert: Killing it with Promises
  • Sweet Alert: Create a Promise!

Taught by

Ryan Weaver and Leanna Pelham

Reviews

Start your review of JavaScript for PHP Geeks

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.