SlideShare a Scribd company logo
1 of 16
Unit 2: jQuery
Lesson 6: Tying It Together
October 14, 2013
Lesson 6: Tying It Together
Introduction
to jQuery

Syntax and
Structure

Abstraction

Events

Lesson 1

Lesson 2

Lesson 3

Lesson 4

TBD

Effects

Tying It
Together

Identifying
Events

Lesson 8

Lesson 7

Lesson 6

Lesson 5

TBD

TBD

TBD

TBD

Lesson 9

Lesson 10

Lesson 11

Lesson 12

2
Recap from last time (I)
ā€¢ Whenever you search on Google, look to buy something on
Amazon, or scroll through your Facebook News Feed, you are
probably triggering events
ā€¢ Events play an important role in creating a rich user experience
and so they appear on every interactive pageā€”or almost all the
websites you regularly visit

Google

Amazon

Facebook
3
Recap from last time (II)
ā€¢ Websites use events to make tasks as basic as filling out a form
become as seamless as possible!

Clicking in the text field triggers the
border to turn blue
Clicking out of an empty text field
triggers the border to turn red and
causes an alert message to appear

4
HTML. CSS. Now jQuery! (I)
ā€¢

We saw in Unit 1 how HTML and CSS files work together:
ā€¢ The HTML file stores the code that relates to the structure of
the page

5
HTML. CSS. Now jQuery! (II)
ā€¢

We saw in Unit 1 how HTML and CSS files work together:
ā€¢ The HTML file stores the code that relates to the structure of
the page
ā€¢ A separate CSS file contains the code that affects the
appearance of the page, and a line in the HTML code tells the
browser where to find this file

6
HTML. CSS. Now jQuery! (III)
ā€¢

ā€¢

We saw in Unit 1 how HTML and CSS files work together:
ā€¢ The HTML file stores the code that relates to the structure of
the page
ā€¢ A separate CSS file contains the code that affects the
appearance of the page, and a line in the HTML code tells the
browser where to find this file
So what happens when we add jQuery?

?
7
More than one way to work with jQuery (I)
ā€¢

ā€¢

Just like with CSS, there are multiple places to keep your jQuery
code, all of which are valid
For example, you could:
1. Place jQuery code at the bottom of the HTML file

Example 1

8
More than one way to work with jQuery (II)
ā€¢

ā€¢

Just like with CSS, there are multiple places to keep your jQuery
code, all of which are valid
For example, you could:
1. Place jQuery code at the bottom of the HTML file

2. Store jQuery in a separate sheet linked to the HTML file

Example 1

Example 2

9
Three reasons to keep jQuery in a separate file
ā€¢

While both of these are valid, itā€™s best to store our jQuery code in
a separate file for the same reasons why we keep our HTML
separate from our CSS

Saves time by reusing code
(Donā€™t Repeat Yourself)

Helps to debug code
(Avoid code bloat)

Keeps us organized
(Separation of concerns)

10
Website with HTML and jQuery walkthrough
ā€¢

x

11
Website with HTML, CSS, and jQuery
walkthrough
ā€¢

x

12
Summary (I)
ā€¢ There is more than one valid place to put jQuery code:
1. At the bottom of the HTML file
2. In a separate sheet linked to the HTML file
ā€¢ However, itā€™s best to store jQuery code in a separate file for the
same reasons why we keep our HTML separate from our CSS

13
Summary (II)
ā€¢ There is more than one valid place to put jQuery code:
1. At the bottom of the HTML file
2. In a separate sheet linked to the HTML file
ā€¢ However, itā€™s best to store jQuery code in a separate file for the
same reasons why we keep our HTML separate from our CSS
Saves time by reusing code
(Donā€™t Repeat Yourself)

Helps to debug code
(Avoid code bloat)

Keeps us organized
(Separation of concerns)

14
Summary (III)
ā€¢ x

15
What to do on your own
1. Go to URL to complete the Codecademy course online

2. Do the practice set on the material learned

1. Take the follow-up quiz to test your understanding

16

More Related Content

What's hot

Donā€™t forget to add doctype
Donā€™t forget to add doctypeDonā€™t forget to add doctype
Donā€™t forget to add doctypeAnna Khabibullina
Ā 
Javascript ch8
Javascript ch8Javascript ch8
Javascript ch8Brady Cheng
Ā 
Introduction to the Web and HTML
Introduction to the Web and HTMLIntroduction to the Web and HTML
Introduction to the Web and HTMLSiddharthBorderwala
Ā 
Google docs tips and tricks
Google docs tips and tricksGoogle docs tips and tricks
Google docs tips and tricksFiona Beal
Ā 
ąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµ
ąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµ
ąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµtaksapornKeawngoen
Ā 
ąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµ
ąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµ
ąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµtaksapornKeawngoen
Ā 
On the incoherencies in web browser access control
On the incoherencies in web browser access controlOn the incoherencies in web browser access control
On the incoherencies in web browser access controlUT, San Antonio
Ā 
html5 new structural elements
html5 new structural elements html5 new structural elements
html5 new structural elements Mohammad Odeh
Ā 
Introduction to OpenOffice.org 2.0
Introduction to OpenOffice.org 2.0Introduction to OpenOffice.org 2.0
Introduction to OpenOffice.org 2.0Isriya Paireepairit
Ā 
What's a web page made of?
What's a web page made of?What's a web page made of?
What's a web page made of?Charlie Allen
Ā 
Upstate CSCI 450 jQuery
Upstate CSCI 450 jQueryUpstate CSCI 450 jQuery
Upstate CSCI 450 jQueryDanWooster1
Ā 
Livebinders Guide
Livebinders GuideLivebinders Guide
Livebinders Guidesraslim
Ā 

What's hot (13)

Donā€™t forget to add doctype
Donā€™t forget to add doctypeDonā€™t forget to add doctype
Donā€™t forget to add doctype
Ā 
Javascript ch8
Javascript ch8Javascript ch8
Javascript ch8
Ā 
Introduction to the Web and HTML
Introduction to the Web and HTMLIntroduction to the Web and HTML
Introduction to the Web and HTML
Ā 
Google docs tips and tricks
Google docs tips and tricksGoogle docs tips and tricks
Google docs tips and tricks
Ā 
ąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµ
ąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµ
ąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµ
Ā 
ąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµ
ąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµ
ąøąø²ąø£ąø•ąø±ą¹‰ąø‡ąøąø­ąø‡ąø—ąøøąø™ąøˆąø”ą¹ąø„ąø°ąøąø²ąø£ąøšąø±ąø™ąø—ąø¶ąøąøšąø±ąøąøŠąøµ
Ā 
On the incoherencies in web browser access control
On the incoherencies in web browser access controlOn the incoherencies in web browser access control
On the incoherencies in web browser access control
Ā 
html5 new structural elements
html5 new structural elements html5 new structural elements
html5 new structural elements
Ā 
Introduction to OpenOffice.org 2.0
Introduction to OpenOffice.org 2.0Introduction to OpenOffice.org 2.0
Introduction to OpenOffice.org 2.0
Ā 
What's a web page made of?
What's a web page made of?What's a web page made of?
What's a web page made of?
Ā 
Upstate CSCI 450 jQuery
Upstate CSCI 450 jQueryUpstate CSCI 450 jQuery
Upstate CSCI 450 jQuery
Ā 
Open Standard
Open StandardOpen Standard
Open Standard
Ā 
Livebinders Guide
Livebinders GuideLivebinders Guide
Livebinders Guide
Ā 

Viewers also liked

Lesson 109 23 aug13-1430-ay
Lesson 109 23 aug13-1430-ayLesson 109 23 aug13-1430-ay
Lesson 109 23 aug13-1430-ayCodecademy Ren
Ā 
Teaching presentation
Teaching presentationTeaching presentation
Teaching presentationjakia123
Ā 
Lesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ayLesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ayCodecademy Ren
Ā 
Lesson 112 24 aug13-2300-ay
Lesson 112 24 aug13-2300-ayLesson 112 24 aug13-2300-ay
Lesson 112 24 aug13-2300-ayCodecademy Ren
Ā 
Lesson 101 23 aug13-1430-ay
Lesson 101 23 aug13-1430-ayLesson 101 23 aug13-1430-ay
Lesson 101 23 aug13-1430-ayCodecademy Ren
Ā 
Lesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ayLesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ayCodecademy Ren
Ā 

Viewers also liked (6)

Lesson 109 23 aug13-1430-ay
Lesson 109 23 aug13-1430-ayLesson 109 23 aug13-1430-ay
Lesson 109 23 aug13-1430-ay
Ā 
Teaching presentation
Teaching presentationTeaching presentation
Teaching presentation
Ā 
Lesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ayLesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ay
Ā 
Lesson 112 24 aug13-2300-ay
Lesson 112 24 aug13-2300-ayLesson 112 24 aug13-2300-ay
Lesson 112 24 aug13-2300-ay
Ā 
Lesson 101 23 aug13-1430-ay
Lesson 101 23 aug13-1430-ayLesson 101 23 aug13-1430-ay
Lesson 101 23 aug13-1430-ay
Ā 
Lesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ayLesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ay
Ā 

Similar to Lesson 206 11 oct13-1500-ay

Lesson 207 19 oct13-1500-ay
Lesson 207 19 oct13-1500-ayLesson 207 19 oct13-1500-ay
Lesson 207 19 oct13-1500-ayCodecademy Ren
Ā 
Lesson 201 14 sep13-1500-ay
Lesson 201 14 sep13-1500-ayLesson 201 14 sep13-1500-ay
Lesson 201 14 sep13-1500-ayCodecademy Ren
Ā 
Lesson 102 23 aug13-1430-ay
Lesson 102 23 aug13-1430-ayLesson 102 23 aug13-1430-ay
Lesson 102 23 aug13-1430-ayCodecademy Ren
Ā 
Lesson 102 25 aug13-2200-ay
Lesson 102 25 aug13-2200-ayLesson 102 25 aug13-2200-ay
Lesson 102 25 aug13-2200-ayCodecademy Ren
Ā 
Lesson 104 23 aug13-1430-ay
Lesson 104 23 aug13-1430-ayLesson 104 23 aug13-1430-ay
Lesson 104 23 aug13-1430-ayCodecademy Ren
Ā 
Lesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ayLesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ayCodecademy Ren
Ā 
Swf search final
Swf search finalSwf search final
Swf search finalDuane Nickull
Ā 
2012 - HTML5, CSS3 and jQuery with SharePoint 2010
2012 - HTML5, CSS3 and jQuery with SharePoint 20102012 - HTML5, CSS3 and jQuery with SharePoint 2010
2012 - HTML5, CSS3 and jQuery with SharePoint 2010Chris O'Connor
Ā 
JS Libraries and jQuery Overview
JS Libraries and jQuery OverviewJS Libraries and jQuery Overview
JS Libraries and jQuery OverviewAleksandr Motsjonov
Ā 
HTML5_3.ppt
HTML5_3.pptHTML5_3.ppt
HTML5_3.pptNEILMANOJC1
Ā 
HTML 5, CSS3 and ASP.NET Best Practices by Example
HTML 5, CSS3 and ASP.NET Best Practices by ExampleHTML 5, CSS3 and ASP.NET Best Practices by Example
HTML 5, CSS3 and ASP.NET Best Practices by ExampleDarren Sim
Ā 
Manual en Dive Into html5
Manual en Dive Into html5Manual en Dive Into html5
Manual en Dive Into html5Erik Gur
Ā 
J query presentation
J query presentationJ query presentation
J query presentationakanksha17
Ā 
J query presentation
J query presentationJ query presentation
J query presentationsawarkar17
Ā 
Html Tutorial
Html Tutorial Html Tutorial
Html Tutorial DenMas Hengky
Ā 
Lesson 108 23 aug13-1430-ay
Lesson 108 23 aug13-1430-ayLesson 108 23 aug13-1430-ay
Lesson 108 23 aug13-1430-ayCodecademy Ren
Ā 

Similar to Lesson 206 11 oct13-1500-ay (20)

Lesson 207 19 oct13-1500-ay
Lesson 207 19 oct13-1500-ayLesson 207 19 oct13-1500-ay
Lesson 207 19 oct13-1500-ay
Ā 
Lesson 201 14 sep13-1500-ay
Lesson 201 14 sep13-1500-ayLesson 201 14 sep13-1500-ay
Lesson 201 14 sep13-1500-ay
Ā 
Lesson 102 23 aug13-1430-ay
Lesson 102 23 aug13-1430-ayLesson 102 23 aug13-1430-ay
Lesson 102 23 aug13-1430-ay
Ā 
Lesson 102 25 aug13-2200-ay
Lesson 102 25 aug13-2200-ayLesson 102 25 aug13-2200-ay
Lesson 102 25 aug13-2200-ay
Ā 
Lesson 104 23 aug13-1430-ay
Lesson 104 23 aug13-1430-ayLesson 104 23 aug13-1430-ay
Lesson 104 23 aug13-1430-ay
Ā 
Lesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ayLesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ay
Ā 
Swf search final
Swf search finalSwf search final
Swf search final
Ā 
2012 - HTML5, CSS3 and jQuery with SharePoint 2010
2012 - HTML5, CSS3 and jQuery with SharePoint 20102012 - HTML5, CSS3 and jQuery with SharePoint 2010
2012 - HTML5, CSS3 and jQuery with SharePoint 2010
Ā 
JS Libraries and jQuery Overview
JS Libraries and jQuery OverviewJS Libraries and jQuery Overview
JS Libraries and jQuery Overview
Ā 
HTML5_3.ppt
HTML5_3.pptHTML5_3.ppt
HTML5_3.ppt
Ā 
HTML 5, CSS3 and ASP.NET Best Practices by Example
HTML 5, CSS3 and ASP.NET Best Practices by ExampleHTML 5, CSS3 and ASP.NET Best Practices by Example
HTML 5, CSS3 and ASP.NET Best Practices by Example
Ā 
Manual en Dive Into html5
Manual en Dive Into html5Manual en Dive Into html5
Manual en Dive Into html5
Ā 
Html5
Html5Html5
Html5
Ā 
J query presentation
J query presentationJ query presentation
J query presentation
Ā 
J query presentation
J query presentationJ query presentation
J query presentation
Ā 
jQuery quick tips
jQuery quick tipsjQuery quick tips
jQuery quick tips
Ā 
Html Tutorial
Html Tutorial Html Tutorial
Html Tutorial
Ā 
Jquery
JqueryJquery
Jquery
Ā 
Lesson 108 23 aug13-1430-ay
Lesson 108 23 aug13-1430-ayLesson 108 23 aug13-1430-ay
Lesson 108 23 aug13-1430-ay
Ā 
Jquery
JqueryJquery
Jquery
Ā 

More from Codecademy Ren

Lesson 303 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ayLesson 303 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ayCodecademy Ren
Ā 
Lesson 301 26 nov13-1500-ay
Lesson 301 26 nov13-1500-ayLesson 301 26 nov13-1500-ay
Lesson 301 26 nov13-1500-ayCodecademy Ren
Ā 
Lesson 205 07 oct13-1500-ay
Lesson 205 07 oct13-1500-ayLesson 205 07 oct13-1500-ay
Lesson 205 07 oct13-1500-ayCodecademy Ren
Ā 
Lesson 204 03 oct13-1500-ay
Lesson 204 03 oct13-1500-ayLesson 204 03 oct13-1500-ay
Lesson 204 03 oct13-1500-ayCodecademy Ren
Ā 
Lesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ayLesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ayCodecademy Ren
Ā 
Lesson 106 23 aug13-1430-ay
Lesson 106 23 aug13-1430-ayLesson 106 23 aug13-1430-ay
Lesson 106 23 aug13-1430-ayCodecademy Ren
Ā 
Lesson 105 23 aug13-1430-ay
Lesson 105 23 aug13-1430-ayLesson 105 23 aug13-1430-ay
Lesson 105 23 aug13-1430-ayCodecademy Ren
Ā 
Lesson 103 23 aug13-1430-ay
Lesson 103 23 aug13-1430-ayLesson 103 23 aug13-1430-ay
Lesson 103 23 aug13-1430-ayCodecademy Ren
Ā 
Lesson 111 24 aug13-1430-ay
Lesson 111 24 aug13-1430-ayLesson 111 24 aug13-1430-ay
Lesson 111 24 aug13-1430-ayCodecademy Ren
Ā 

More from Codecademy Ren (9)

Lesson 303 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ayLesson 303 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ay
Ā 
Lesson 301 26 nov13-1500-ay
Lesson 301 26 nov13-1500-ayLesson 301 26 nov13-1500-ay
Lesson 301 26 nov13-1500-ay
Ā 
Lesson 205 07 oct13-1500-ay
Lesson 205 07 oct13-1500-ayLesson 205 07 oct13-1500-ay
Lesson 205 07 oct13-1500-ay
Ā 
Lesson 204 03 oct13-1500-ay
Lesson 204 03 oct13-1500-ayLesson 204 03 oct13-1500-ay
Lesson 204 03 oct13-1500-ay
Ā 
Lesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ayLesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ay
Ā 
Lesson 106 23 aug13-1430-ay
Lesson 106 23 aug13-1430-ayLesson 106 23 aug13-1430-ay
Lesson 106 23 aug13-1430-ay
Ā 
Lesson 105 23 aug13-1430-ay
Lesson 105 23 aug13-1430-ayLesson 105 23 aug13-1430-ay
Lesson 105 23 aug13-1430-ay
Ā 
Lesson 103 23 aug13-1430-ay
Lesson 103 23 aug13-1430-ayLesson 103 23 aug13-1430-ay
Lesson 103 23 aug13-1430-ay
Ā 
Lesson 111 24 aug13-1430-ay
Lesson 111 24 aug13-1430-ayLesson 111 24 aug13-1430-ay
Lesson 111 24 aug13-1430-ay
Ā 

Recently uploaded

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
Ā 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
Ā 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
Ā 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
Ā 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
Ā 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
Ā 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
Ā 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
Ā 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
Ā 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
Ā 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
Ā 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
Ā 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
Ā 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
Ā 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
Ā 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
Ā 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
Ā 
Mcleodganj Call Girls šŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls šŸ„° 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls šŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls šŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
Ā 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
Ā 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
Ā 

Recently uploaded (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
Ā 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
Ā 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Ā 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Ā 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Ā 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
Ā 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Ā 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
Ā 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
Ā 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
Ā 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Ā 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Ā 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
Ā 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Ā 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Ā 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
Ā 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Ā 
Mcleodganj Call Girls šŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls šŸ„° 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls šŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls šŸ„° 8617370543 Service Offer VIP Hot Model
Ā 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
Ā 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Ā 

Lesson 206 11 oct13-1500-ay

  • 1. Unit 2: jQuery Lesson 6: Tying It Together October 14, 2013
  • 2. Lesson 6: Tying It Together Introduction to jQuery Syntax and Structure Abstraction Events Lesson 1 Lesson 2 Lesson 3 Lesson 4 TBD Effects Tying It Together Identifying Events Lesson 8 Lesson 7 Lesson 6 Lesson 5 TBD TBD TBD TBD Lesson 9 Lesson 10 Lesson 11 Lesson 12 2
  • 3. Recap from last time (I) ā€¢ Whenever you search on Google, look to buy something on Amazon, or scroll through your Facebook News Feed, you are probably triggering events ā€¢ Events play an important role in creating a rich user experience and so they appear on every interactive pageā€”or almost all the websites you regularly visit Google Amazon Facebook 3
  • 4. Recap from last time (II) ā€¢ Websites use events to make tasks as basic as filling out a form become as seamless as possible! Clicking in the text field triggers the border to turn blue Clicking out of an empty text field triggers the border to turn red and causes an alert message to appear 4
  • 5. HTML. CSS. Now jQuery! (I) ā€¢ We saw in Unit 1 how HTML and CSS files work together: ā€¢ The HTML file stores the code that relates to the structure of the page 5
  • 6. HTML. CSS. Now jQuery! (II) ā€¢ We saw in Unit 1 how HTML and CSS files work together: ā€¢ The HTML file stores the code that relates to the structure of the page ā€¢ A separate CSS file contains the code that affects the appearance of the page, and a line in the HTML code tells the browser where to find this file 6
  • 7. HTML. CSS. Now jQuery! (III) ā€¢ ā€¢ We saw in Unit 1 how HTML and CSS files work together: ā€¢ The HTML file stores the code that relates to the structure of the page ā€¢ A separate CSS file contains the code that affects the appearance of the page, and a line in the HTML code tells the browser where to find this file So what happens when we add jQuery? ? 7
  • 8. More than one way to work with jQuery (I) ā€¢ ā€¢ Just like with CSS, there are multiple places to keep your jQuery code, all of which are valid For example, you could: 1. Place jQuery code at the bottom of the HTML file Example 1 8
  • 9. More than one way to work with jQuery (II) ā€¢ ā€¢ Just like with CSS, there are multiple places to keep your jQuery code, all of which are valid For example, you could: 1. Place jQuery code at the bottom of the HTML file 2. Store jQuery in a separate sheet linked to the HTML file Example 1 Example 2 9
  • 10. Three reasons to keep jQuery in a separate file ā€¢ While both of these are valid, itā€™s best to store our jQuery code in a separate file for the same reasons why we keep our HTML separate from our CSS Saves time by reusing code (Donā€™t Repeat Yourself) Helps to debug code (Avoid code bloat) Keeps us organized (Separation of concerns) 10
  • 11. Website with HTML and jQuery walkthrough ā€¢ x 11
  • 12. Website with HTML, CSS, and jQuery walkthrough ā€¢ x 12
  • 13. Summary (I) ā€¢ There is more than one valid place to put jQuery code: 1. At the bottom of the HTML file 2. In a separate sheet linked to the HTML file ā€¢ However, itā€™s best to store jQuery code in a separate file for the same reasons why we keep our HTML separate from our CSS 13
  • 14. Summary (II) ā€¢ There is more than one valid place to put jQuery code: 1. At the bottom of the HTML file 2. In a separate sheet linked to the HTML file ā€¢ However, itā€™s best to store jQuery code in a separate file for the same reasons why we keep our HTML separate from our CSS Saves time by reusing code (Donā€™t Repeat Yourself) Helps to debug code (Avoid code bloat) Keeps us organized (Separation of concerns) 14
  • 16. What to do on your own 1. Go to URL to complete the Codecademy course online 2. Do the practice set on the material learned 1. Take the follow-up quiz to test your understanding 16