Skip to content

Expand "Triggering Event Handlers" article #84

Closed
@ajpiano

Description

@ajpiano

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions