T-Talk. Javascript. JQuery. Custom Events. Namics. Thomas Junghans. Frontend Engineer. 12 th August 2009.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Our Social Media Why and how to compose a social media release.
Web 2.0 Programming 1 © Tongji University, Computer Science and Technology. Web Web Programming Technology 2012.
Advanced Piloting Cruise Plot.
Slide 1 Insert your own content. Slide 2 Insert your own content.
Behzad Samin 0 An End-to-End Overview of a RESTful Web Service.
Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 38.
Remote Educational Programming Of Robots (REPOR) Tord Fauskanger Aurelie Aurilla Bechina Arntzen Dag Samuelsen Buskerud University College.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
1 Discovering SharePoint What is SharePoint? What is SharePoint? How does it do that? How does it do that? How do we use it? How do we use it? What shape.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
Arithmetic and Geometric Means
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
Multiplying binomials You will have 20 seconds to answer each of the following multiplication problems. If you get hung up, go to the next problem when.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
1 Learning Touchmath *Graphics taken from
ZMQS ZMQS
Richmond House, Liverpool (1) 26 th January 2004.
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
ABC Technology Project
2 |SharePoint Saturday New York City
O X Click on Number next to person for a question.
1 What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight.
VOORBLAD.
HORIZONT TWS/WebAdmin TWS/WebAdmin for Distributed
1 Breadth First Search s s Undiscovered Discovered Finished Queue: s Top of queue 2 1 Shortest path from s.
Squares and Square Root WALK. Solve each problem REVIEW:
We are learning how to read the 24 hour clock
Fawaz Ghali AJAX: Web Programming's Toy.
1 DEV141 Gord Tanner Michael Brooks May 1, 2012 Porting to BlackBerry using Apache Cordova.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
Getting Familiar with Web Pages 1 2 The Internet Worldwide collection of interconnected computer networks that enables businesses, organizations, governments,
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
Doubles Facts Doubles with Pictures Doubles without Pictures Pictures Only.
Januar MDMDFSSMDMDFSSS
Week 1.
Title Name institution. April, 9-11th, 2015FORIL XI
We will resume in: 25 Minutes.
1 Ke – Kitchen Elements Newport Ave. – Lot 13 Bethesda, MD.
VERSES OF GREAT SIGNIFICANCE 1 NEPHI Working in pairs, you will have 90 seconds per verse (station) to discover a principle/lesson/truth You will.
1 Unit 1 Kinematics Chapter 1 Day
O X Click on Number next to person for a question.
PSSA Preparation.
Analysis of Algorithms
T-Talk. Javascript. Module Pattern. Namics. Thomas Junghans. Frontend Engineer. 12 h August 2009.
CMPT 100 : INTRODUCTION TO COMPUTING TUTORIAL #5 : JAVASCRIPT 2 GUESSING GAME By Wendy Sharpe 1.
State-Space Collapse via Drift Conditions Atilla Eryilmaz (OSU) and R. Srikant (Illinois) 4/10/20151.
23 Things You Didn’t Know About Multitype Libraries.
HTML Concepts and Techniques Fourth Edition Project 2 Creating and Editing a Web Page.
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
Presentation transcript:

T-Talk. Javascript. JQuery. Custom Events. Namics. Thomas Junghans. Frontend Engineer. 12 th August 2009

Namics. Contents  Definition  Why use?  jQuery helps  Example  Links 27/03/2015 Denken. Präsentieren. Umsetzen. 2

Namics. Definition of [custom] events 27/03/20153 Denken. Präsentieren. Umsetzen.

Namics. Definition of [custom] events  Javascript’s interaction with HTML is handled through events  Events are “interesting moments” during the life time of an application.  Custom events are events created by ourselves. 27/03/20154 Denken. Präsentieren. Umsetzen.

Namics. Definition of [custom] events  Events you already know: 27/03/20155 Denken. Präsentieren. Umsetzen.

Namics. Definition of [custom] events 27/03/2015 Denken. Präsentieren. Umsetzen. 6 load

Namics. Definition of [custom] events 27/03/2015 Denken. Präsentieren. Umsetzen. 7 click

Namics. Definition of [custom] events 27/03/2015 Denken. Präsentieren. Umsetzen. 8 submit

Namics. Definition of [custom] events 27/03/2015 Denken. Präsentieren. Umsetzen. 9 focus

Namics. Definition of [custom] events 27/03/2015 Denken. Präsentieren. Umsetzen. 10 blur

Namics. Definition of [custom] events 27/03/2015 Denken. Präsentieren. Umsetzen. 11 mouseover

Namics. Definition of [custom] events 27/03/2015 Denken. Präsentieren. Umsetzen. 12

Namics. Definition of [custom] events  Examples of custom events: 27/03/ Denken. Präsentieren. Umsetzen.

Namics. Definition of [custom] events 27/03/2015 Denken. Präsentieren. Umsetzen. 14 onColourChange

Namics. Definition of [custom] events 27/03/2015 Denken. Präsentieren. Umsetzen. 15 onItemAdded

Namics. Definition of [custom] events 27/03/2015 Denken. Präsentieren. Umsetzen. 16 onSliderMove

Namics. Definition of [custom] events 27/03/2015 Denken. Präsentieren. Umsetzen. 17 onMaxValueReached

Namics. Definition of [custom] events 27/03/2015 Denken. Präsentieren. Umsetzen. 18 Note the “on” prefix

Namics. Why use custom events? 27/03/ Denken. Präsentieren. Umsetzen.

Namics. Why use custom events?  Using custom events makes your code become  Easier to maintain  Improved readability. Easier for other developers to dig into.  Easier to debug  Finding the issue is a lot easier, since we’re not looking at spaghetti code  Easier to change and extend  Adding new actions to events is much much easier  Changing an action without disturbing another is less of a hassle 27/03/ Denken. Präsentieren. Umsetzen.

Namics. Why use custom events? 27/03/2015 Denken. Präsentieren. Umsetzen. 21 Easier = I can go home earlier

Namics. Why use custom events? 27/03/2015 Denken. Präsentieren. Umsetzen. 22 While making life easier, you’re improving code quality

Namics. Why use custom events?  Custom events also improve code quality  Observer pattern  The binded event is the event being observed (watched) or subscribed to.  Loose Coupling  Less dependencies between code blocks  Inversion of Control  Let the events control the flow of the application  Hollywood Principle: “Don’t call us, we’ll call you”. 27/03/ Denken. Präsentieren. Umsetzen.

Namics. jQuery helps 27/03/ Denken. Präsentieren. Umsetzen.

Namics. jQuery helps  The browser event system is a complex one  IE handles events differently (bubbling vs capture)  Let‘s keep it simple and easy  Use jQuery „trigger“ and „bind“  This can of course be done with other js libraries such as YUI 27/03/ Denken. Präsentieren. Umsetzen.

Namics. jQuery helps 27/03/ Denken. Präsentieren. Umsetzen.

Namics. jQuery helps 27/03/ Denken. Präsentieren. Umsetzen. What you need to know

Namics. jQuery helps 27/03/ Denken. Präsentieren. Umsetzen. $(‘selector’).trigger(‘onMyEvent’)

Namics. jQuery helps 27/03/ Denken. Präsentieren. Umsetzen. $(‘selector’).bind(‘onMyEvent’, function() { // do something } );

Namics. jQuery helps 27/03/ Denken. Präsentieren. Umsetzen. That’s it!

Namics. Example 27/03/ Denken. Präsentieren. Umsetzen.

Namics. Example  cript-custom-events-jquery/ 27/03/ Denken. Präsentieren. Umsetzen.

Namics. Thank. You. Questions? © Namics 27/03/ Denken. Präsentieren. Umsetzen.

27/03/ Denken. Präsentieren. Umsetzen.