Chapter 17: Server-Side Techniques

Listing 17.1: XSSI Browser Sniffing

This conditional SSI code simulates JavaScript browser sniffing on the server using XSSI. The code simulates Peter Belesis' sniffer code for his Hiermenus and reports whether your browser is DHTML capable (isMENU, and DOM, IE4, or NS4). Here is the source.

isMENU IE4.js NS4.js DOM.js