开发者

How is "standard" cross browser event management done outside of the libraries?

The topic of event handler management has been covered in many places in the past. One location is in the contest by PPK. The winning submission by John Resig has a few pr开发者_如何学编程oblems, and the commentary on the site seems to gravitate to the implementation by Dean Edwards after the analysis of the Resig code.

There are even some more implementations here on stackoverflow such as from: Bill Ayakatubby and Marco Demaio.

Outside of the JavaScript frameworks, what is generally done for supporting event functionality? There are numerous options each with their own benefits and drawbacks. I'm uncertain of which one to use myself. Is there an undeclared de facto?


There are three unsupported standards for XML event management, which each have JavaScript implementations:

  • XBL via xbl.js
  • XML Events via XSLTForms
  • SMIL via Timesheets Engine or timesheets.js

Since none of the standards are implemented cross-browser, the de facto standard is called intrinsic events.

References

  • Event handlers on elements, Document objects, and Window objects
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜