| CNET | Price comparisons | Product reviews | Business solutions | News | Downloads | Site map | Free e-mail |
![]() |
|
![]() |
| CNET : Web Building : Programming & Scripting : Feature |
![]() |
||
More from the CNET network
FreeDOM: A JavaScript framework, in Builder.com More from the Web
The Pattern
Document Object Model (DOM) specification, in the W3C
|
(2/2/99) Are you ready for another dose of FreeDOM, the open source, freely distributable Dynamic Object Model for JavaScript? Our first exploration of this object-oriented application-development framework explained what FreeDOM was all about and how to install and use it. Now, it's time to delve into how FreeDOM can help you create Web pages, sites, and applications that comply with the recently released World Wide Web Consortium (W3C) Document Object Model (DOM) specification. You'll see practical, standards-based applications of FreeDOM using today's 4.x browsers and Web development tools. You'll also learn how FreeDOM adds value to the W3C DOM and provides a bridge to the future of the soon-to-be-released 5.0 browsers, both of which have pledged full support of the W3C DOM. Before delving into FreeDOM, take the time to check out our brief object-model tutorial. This important concept doesn't generally get explained very well; most of the W3C documents, for example, simply assume you know what an object model is. With that understanding in place, you'll be ready for the basic approach to implementing the W3C DOM in FreeDOM. To make things clearer, we've put together a simple example that could serve as the basis for a number of real-world applications of W3C DOM-compliant FreeDOM. Finally, as Microsoft and Netscape ready the next releases of their browsers, it's important to consider the implications of the 5.0 browsers for the availability and support of FreeDOM. After all, why should you bother learning and using FreeDOM if the 5.0 browsers promise to provide full W3C DOM compliance? To install and run the example application in this article, and to use the W3C DOM-compliant version of FreeDOM, you must obtain the source code files and place them in the same directory as the HTML files you create to take advantage of them (see the Get It Now box on this page). Another option is simply to define the src attribute of your pages' <SCRIPT> tags to point to the source files at my site, The Pattern. (Use the URL http://www.thepattern.com/freedom/builder2.)
(Note: before continuing, be sure you've read the first installment of this series, which offers a detailed explanation of FreeDOM's basic concepts and its use of object-oriented JavaScript principles.)
Laurence Rozier is the producer of The Pattern. An industry veteran, he has been scripting and programming objects for more than a decade. In previous lives, Rozier was a database administrator and a spacecraft control-systems engineer.
|
|||||||||||||||||||||||||||||
![]() |
| Featured services: Domain names | Newsletters | Auctions | Site building | Electronics | Search | Bandwidth Meter |
| CNET Networks: CNET | GameSpot | mySimon | ZDNet | About CNET |
| Join CNET, we're hiring |