JavaScript and JQuery

JavaScript (/ECMAScript): http://en.wikipedia.org/wiki/JavaScript

JavaScript is an in-browser programming language designed to provide customization of interactive behavior and reduce real or apparent user-interface latency (e.g. avoid up-front server round trips – see AJAX, below).

JQuery examples

Since JavaScript is one of the worst possible languages actually in wide use (it’s needlessly inconsistent and largely incoherent) a number of frameworks have popped into existence to help programmers actually make effective use of it.

JQuery (http://jquery.org/) is one such framework; it’s relatively small, fast, and concise.

JQuery uses two nice basic concepts: selectors, and chaining. Selectors let you pick out sets or subsets of elements based on CSS-style patterns:

https://github.com/ctb/cse491-serverz/tree/day16/jquery-examples/ex1.html

Chaining lets you apply multiple functions in sequence without respecifying which elements you want to modify:

https://github.com/ctb/cse491-serverz/tree/day16/jquery-examples/ex2.html

You can specify all sorts of fun tricks:

https://github.com/ctb/cse491-serverz/tree/day16/jquery-examples/ex3.html

Table Of Contents

This Page

Edit this document!

This file can be edited directly through the Web. Anyone can update and fix errors in this document with few clicks -- no downloads needed.

  1. Go to JavaScript and JQuery on GitHub.
  2. Edit files using GitHub's text editor in your web browser (see the 'Edit' tab on the top right of the file)
  3. Fill in the Commit message text box at the bottom of the page describing why you made the changes. Press the Propose file change button next to it when done.
  4. Then click Send a pull request.
  5. Your changes are now queued for review under the project's Pull requests tab on GitHub!

For an introduction to the documentation format please see the reST primer.