Netscape 6, Part V: DOCJSLIB 1.1
This column is the fifth part of our series on Netscape 6. In this column we'll go back to our DOCJSLIB 1.0 and extend it to support Netscape 6. Although the changes are minor, we'll explain the newly created version, 1.1, from start to finish, as we did we first introduced DOCJSLIB 1.0. The principles of DOCJSLIB 1.1 are identical to those of 1.0: hiding implementation details from the scripter, API-like (Application Procedural Interface) function interfaces, and browser-independence. We demonstrate DOCJSLIB 1.1 with our traditional Tic-Tac-Toe game (previously called Connect Three).
The original version of DOCJSLIB 1.0 is explained in Column 27. In upcoming columns, we'll upgrade the rest of DOCJSLIB versions, 2, 3, and 4, to support Netscape 6 and other Mozilla-based browsers. These versions are explained in Columns 28, 29, and 33, respectively.
In this column, you will learn:
- How to use DOCJSLIB's principles
- How to sniff the browser type
- How to use DOCJSLIB's image model
- How to use the
- How to adapt DOCJSLIB 1.0 to Netscape 6
- How to use DOCJSLIB to write an application
- How to write the event handler
- How to write the Tic-Tac-Toe's functions
At this point, you may also view the code for the Tic-Tac-Toe board game, or just for DOCJSLIB library. Just copy from these files and paste to your own application. A ZIP file version of DOCJSLIB 1.1 library is also provided.
Next: How to use DOCJSLIB's principles