Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

DOM level 2 event listener question(question in detail)

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Author
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ronak Patel
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks scott.
If anybody have coded example of this then please put up on this post.
With Regards.
 
What does a metric clock look like? I bet it is nothing like this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic