[x3d-public] *** COBWEB RELEASE ANNOUNCEMENT ***; book/jsfiddle for _DOM Enlightenment_

Don Brutzman brutzman at nps.edu
Tue Apr 5 17:22:20 PDT 2016


On 4/5/2016 3:16 PM, Andreas Plesch wrote:
> Thanks. This is what I thought.

thanks +1 -- times everyone, likely!

> And from outside the scene you can use the SAI once you get the Browser object as far as I remember ?
>
> BTW, it is often possible to avoid jquery and to use the plain DOM API instead. Something perhaps to consider although certainly not a priority.

interesting O'Reilly book:  _DOM Enlightenment_ by Cody Lindley

	http://domenlightenment.com

example

	Chapter 11 - DOM Events
	http://domenlightenment.com/#11

	11.1 DOM events overview

> An event, in terms of the DOM, is either a pre-defined or custom moment in time that occurs in relationship with an element in the DOM, the document object, or the window object. These moments are typically predetermined and programaticlly accounted for by associating functionality (i.e. handlers/callbacks) to occur when these moments in time come to pass. These moments can be initiated by that state of the UI (e.g. input is focused or something has been dragged), the state of the enviroment that is running the JavaScript program (e.g. page is loaded or XHR request has finished), or the state of the program itself (e.g. start monitor users ui interaction for 30 seconds after the page has loaded).
>
> Setting up events can be accomplished using inline attribute event handlers, property event handlers, or the addEventListener() method. In the code below I'm demonstrating these three patterns for setting up an event. All three patterns add a click event that is invoked whenever the <div> in the html document is clicked by the mouse.

	http://jsfiddle.net/domenlightenment/4EPjN/

... then click on the "click me" html subwindow at center right, observe Firebug console for Javascript output on lower right

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list