aspose file tools*
The moose likes Product and Other Certifications and the fly likes DOM level 2 event listener question(question in detail) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "DOM level 2 event listener question(question in detail) " Watch "DOM level 2 event listener question(question in detail) " New topic
Author

DOM level 2 event listener question(question in detail)

Ronak Patel
Ranch Hand

Joined: Aug 14, 2002
Posts: 31
hi there,
i have read DOM level 2 spesification and seen event listner(UI and mouse)in Professional XML 2nd Edition. UI contains DOMFocusIn,DOMFocusOut and DOMActivate type.Mouse event contains click,mousedown , mouseup, mouseover, mousemove and mouseout type.
I can not understand how come we can use this UI and mouse events different type with DOM. If i have one DOM tree then when mouseover or focuslost type event fire? If possible than answer me with example.
In waiting of reply.
Scott Duffy
Author
Ranch Hand

Joined: May 23, 2002
Posts: 58
The best example is HTML.
HTML implements a Document Object Model for its content.
When the user passes their mouse over an image, a "onMouseOver" event fires, and if there are any JavaScript functions "listening" for that event, the code will run.
The HTML event model is similar to the event model proposed by DOM2.
Scott
MCSD, SCJP, IBM-XML


Scott Duffy<br />:: MCSD, SCJP, IBMXML<br />:: Author of <a href="http://www.xguru.com/tutorial/cat_index.asp?cat=5" target="_blank" rel="nofollow">IBM XML Certification Guide</a><br />:: Author of <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0072228873" target="_blank" rel="nofollow">How to Do Everything in JavaScript</a>, Osborne Press
Ronak Patel
Ranch Hand

Joined: Aug 14, 2002
Posts: 31
Thanks scott.
If anybody have coded example of this then please put up on this post.
With Regards.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DOM level 2 event listener question(question in detail)