Intro To Jquery: Class 1 Slides Available at
Intro To Jquery: Class 1 Slides Available at
CLASS 1
SLIDES AVAILABLE AT:
Javascript ~ Girl Develop It ~
HTTP://ALEXISGO.GITHUB.IO/JQUERYINTRO/
WELCOME!
Girl Develop It is here to provide affordable and
accessible programs to learn software through
mentorship and hands-on instruction.
Some "rules"
We are here for you!
Every question is important
Help each other
Have fun
WHAT IS JQUERY?
jQuery is a library of JavaScript functions.
It contains many functions to help simplify your
programming, including:
HTML element selection & manipulation
CSS manipulation
HTML events
JavaScript effects and animations
WHAT IS A LIBRARY?
Software libraries hold functions
functions are like a collection of helpful code you
want to run again & again
When you include a library, you can use all the
functions in that library
That means: you get to take advantage of other
people's experience!
And... Save time!
WHY USE JQUERY?
The most popular JavaScript library
jQuery empowers you to "write less, do more."
Great documentation and tutorials
Used by nearly 20 million(!) websites
HISTORY OF JAVASCRIPT
Developed by Brendan Eich of Netscape in 1995
Standardized in 1997
Java -- Actually JavaScript has nothing to do with the
language Java. Java was just the cool kid in town at
the time
Script -- Instructions that a computer can run one line
at a time
HISTORY OF JAVASCRIPT
"AJAX" -- a way to communicate to servers was
created in 2005
jQuery -- a super-popular JavaScript Library 2006
Node.js -- a way for JavaScript to perform back end
functions in 2010
2012 -- spec for JavaScript "nearly" finished
WHAT DOES JAVASCRIPT DO?
Image Galleries and Lightboxes
Games and all sorts of Google Doodles
Interactions, like show/hide and accordians
Retrieving data from other websites (through
APIs)
All sorts of awesomeness, including this slideshow!
JQUERY: A BRIEF HISTORY
jQuery was created by John Resig, a JavaScript tool
developer at Mozilla.
January 2006: John announced jQuery at
BarCampNYC: BarCampNYC Wrap-up
September 2007: A new user interface library is
added to jQuery: jQuery UI: Interactions and Widgets
September 2008: Microsoft and Nokia announce their
support for jQuery
December 2009: jQuery wins .Net Magazine's Award
for Best Open Source Application
INCLUDING JQUERY
Two ways to include jQuery on your page:
Download the library, store it locally:
<head>
<script type="text/javascript" src="jquery.js"></script>
</head>
(I ate a banana)
NAMING RULES
Begin with a letter, _, or $
Contain letters, numbers, _ and $
var hello;
var _hello;
var $hello;
var hello2;
addNumbers(5, 6);
Append html
var div = $('#results');
div.append('Additional html');
Prepend html
var div = $('#results');
div.prepend('Additional html (on top)');
CREATING NEW ELEMENT
var newDiv = $('<div></div>');
});
$('#hide').click(
function() {
$('#mainpic').hide();
}
);
HOMEWORK!
Reading:
JavaScript 101: Getting Started
How jQuery Works
Selecting Elements
jQuery Basics from jQuery Fundamentals, by
Rebecca Murphey
If you'd like a book recommendation to go along with
this course, I'd recommend jQuery: Novice to Ninja
QUESTIONS?