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

Already on GitHub? Sign in to your account

Expand "Triggering Event Handlers" article #84

Closed
ajpiano opened this Issue Mar 15, 2012 · 4 comments

Comments

Projects
None yet
4 participants
Member

ajpiano commented Mar 15, 2012

In addition to the basic content there now on $.fn.trigger, the article should cover the following

  • The difference between triggering handlers and the actual browser event happening (ie, why can't I trigger a click on a file input to open the file chooser, why can't I trigger a click on an achor to follow it)
  • * How to get around that (jQuery.simulate plugin, document.createEvent cycle)
  • $.fn.triggerHandler - the difference between it and $.fn.trigger (only calls bound handlers, not default behaviour)
  • Not using $.fn.trigger to control your application - discussing why apps should have direct access to call necessary methods, instead of triggering anonymous handlers bound all over the DOM. (i.e., your "view" should be bound to call application methods, your application shouldn't dig into the DOM to make itself happen)
Member

kswedberg commented Mar 15, 2012

great stuff! also for $.fn.triggerHandler : doesn't bubble.

Contributor

johnkpaul commented Apr 9, 2012

I have begun work on this here. I think that I need to read more examples to see how much detail is appropriate.

@johnkpaul johnkpaul added a commit to johnkpaul/learn.jquery.com that referenced this issue Apr 12, 2012

@johnkpaul johnkpaul begin work on issue #84, article organization a4636b2
Member

addyosmani commented May 17, 2012

This looks good. Planning on expanding it @johnkpaul?

Contributor

johnkpaul commented May 21, 2012

I just updated my pull request to include your feedback, @addyosmani. There's nothing that I'm planning to add.

@addyosmani addyosmani added a commit that referenced this issue May 21, 2012

@addyosmani addyosmani Merge pull request #109 from johnkpaul/issue_84_triggering_handlers
Added triggering handlers section. Initial work for #84
cd8d1dc

@ajpiano ajpiano closed this Oct 15, 2012

@arthurvr arthurvr pushed a commit to arthurvr/learn.jquery.com that referenced this issue Jan 4, 2015

@johnkpaul johnkpaul begin work on issue #84, article organization 7299266

@arthurvr arthurvr pushed a commit to arthurvr/learn.jquery.com that referenced this issue Jan 4, 2015

@addyosmani addyosmani Merge pull request #109 from johnkpaul/issue_84_triggering_handlers
Added triggering handlers section. Initial work for #84
ab1617c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment