spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column23


More on DHTML Behaviors

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

In our previous column we introduced Behaviors, the most significant new JavaScript feature of Internet Explorer 5.0. We have shown how to write a behavior scriptlet and how to communicate between the scriptlet and the containing page. This interface handling is accomplished by the Behavior Handler. The Behavior Handler:

  • Notifies the behavior scriptlet of certain occurrences, such as when the calling document is loaded.
  • Exposes custom events to the calling page.
  • Exposes the element that the behavior is associated with to the scriptlet.
In this column, we formally describe all the Behavior Handler's features, including its elements, methods, properties, and attributes. In our previous column we covered a subset of the Behavior Handler's features, to get you started on your coding as fast as possible. In this column, however, we go for breadth. We describe all the Behavior Handler's features, for immediate and future reference.

We explain the Behavior Handler via a new example, the popular Connect Three game. It is played by two opponents on a 3x3 board. Each opponent, in his or her turn, places a game piece in one of the unoccupied board locations. In our example, one opponent is using "X"s and the other one is using "O"s. The first to accomplish a row, a column, or a diagonal of identical pieces is the winner.

In this column you'll learn:

At this point you may also view the entire file for the hosting page and the behavior scriptlet.

More Resources from Doc JavaScript
Columns Popular Columns Tips Tools
Latest Columns
41-50 | 31-40 | 21-30
11-20 | 1-10
Working with Windows
JavaScript and Frames
Bookmarklets
Random Tips
Personalized Tips
RSS Channels
Menu Builder
Rollover Builder
Rotation Builder
Reference Tip Categories (want one?)
Links
For Your Site
Did you learn something? Do you like this site? Please link to us!

http://www.internet.com

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


Created: August 11, 1998
Revised: August 11, 1998

URL: http://www.webreference.com/js/column23/