JavaScript

warning: Creating default object from empty value in /home/coredogs/public_html/modules/taxonomy/taxonomy.pages.inc on line 33.

Understanding variables

See more about:

Most programs use variables. This lesson explains what variables are.

Common JavaScript Errors

See more about:

Here are some common errors people make in JavaScript.

The number of elements in a JavaScript array: length is misleading

See more about:

The JavaScript property length returns the number of elements in an array. Right? Er, well, ...

eMe: A quiz

See more about:

Create a quiz about yourself.

Focus

You’ll learn how to use focus() to improve a page’s usability.

Changing text

See more about:

Learn some more JavaScript/jQuery:

  • Learn how to set the text of an element, with text("stuff").
  • Learn how to get the text of an element, with text().
  • Learn how to add a CSS class to an element, with addClass().
  • Learn how to remove a CSS class from an element, with removeClass().

SitePoint reference

See more about:

Good reference for HTML, CSS, and JavaScript.

Programs in browsers

See more about:

In this lesson, you will learn that:

  • Some programs run inside browsers.
  • Those programs are downloaded along with pages.
  • Every major browser can run JavaScript programs.
  • Programs are triggered by events.
  • JavaScript is used for interface effects, validating form data, input widgets, and sending data to a server.

Finding JavaScript bugs

See more about:

Learn:

  • Syntax bugs happen when you type something the browser doesn’t understand, like alrt().
  • Use Firefox’s error console to track down syntax errors.
  • Logic errors are when you tell the browser to do the wrong thing.
  • Use alert() statements to track program execution. If alert messages are supposed to show up, but don’t, you know what code is not executing.
  • Use alert() statements to look at the values of variables.

Better client-side error display

See more about:

Learn:

  • How to report errors in a professional way.
  • How page-wide, global error messages help the user.
  • How JavaScript functions make error reporting easier to program.

Lessons

How to...


Dogs