Skip to content

Added "Introduction to Events" chapter #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 3, 2012
Merged

Added "Introduction to Events" chapter #102

merged 2 commits into from
Jun 3, 2012

Conversation

stevenhauser
Copy link
Contributor

Added a chapter to introduce users to events in jQuery (in response to issue #79). Perhaps it's a bit too verbose for an introductory chapter though?

@addyosmani
Copy link
Member

I think you've done a great job of putting together an events introduction that we can build on. I would say that my initial impressions are it isn't overly verbose and from a beginner's perspective they do get what they need to grasp the basics from this piece. @ajpiano - I imagine we'll be building on this material significantly during the rest of the section. Does this look okay to you content-wise?

(pending further technical review, I'll have a deeper look shortly)


## Introduction

Web pages are all about interaction. Users move their mice over the page, click on elements, type in textboxes, etc. All of these are examples of events. In addition to user events, there are a slew of others that occur, like when the page is loaded, when video begins playing or is paused, etc. Whenever something interesting occurs on the page, an event is fired, meaning that the browser basically announces that something has happened. It's this announcement that allows developers to "listen" for events and react to them appropriately.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rewrite this sentence to eliminate "etc."

@ajpiano
Copy link
Member

ajpiano commented Apr 9, 2012

This is a great start, I've provided some things to work through above, please let me know if you have any questions. Like @addyosmani said above, some of this may end up being harvested out into other sections, but let's just flesh it out for now.

- Revised tone in some areas
- Added an example using `addEventListener` and explained how jQuery
abstracts away browser inconsistencies
- Reordered some sections for better flow
- Went a bit more in-depth on `stopPropagation`
@stevenhauser
Copy link
Contributor Author

I've made the requested adjustments and committed them. @ajpiano, let me know if you think anything else needs modified.

addyosmani added a commit that referenced this pull request Jun 3, 2012
Added "Introduction to Events" chapter
@addyosmani addyosmani merged commit 6a41420 into jquery:master Jun 3, 2012
arthurvr pushed a commit to arthurvr/learn.jquery.com that referenced this pull request Jan 4, 2015
Added "Introduction to Events" chapter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants