aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Javascript function  registration Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Javascript function  registration" Watch "Javascript function  registration" New topic
Author

Javascript function registration

Ranadhir Nag
Ranch Hand

Joined: Mar 09, 2006
Posts: 138
We register 2 functions against the same event of a component - but in different ways.
One is through inline event handlers and the other through attachevent/addeventlistener.
What is the order of firing of the events - do both the events get fired or one suppresses the other.
Is the behaviour uniform across browsers?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
Silly question: Did you write a little test page and see what happens?

Well today is your lucky day since I have this test page for you to see in all of its glory: http://www.pascarello.com/examples/testRegister.html

(The solution is there too!)

Eric
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Javascript function registration
 
Similar Threads
Event Binding in Java ?
is it a single thread or multiple thread for different jframe
display dynamically
Identifying events with javascript functions registered
Difference between flash.events and mx.events packages??