• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Server-Side Techniques > Server-Side Browser Sniffing

Server-Side Browser Sniffing

You can use flow control to test for different browsers and display conditional code. This is especially useful for external JavaScript files that are optimized for various platforms. Using conditional SSI and the set command, you can create environment variables that closely mirror common client-side JavaScript sniffing techniques. Let's take a real-world example, using our own DHTML hierarchical menus (see Figure 17.1).

Figure 17.1. Peter Belesis' DHTML hierarchical menus.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint