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

Chapter 6. Templating Navigation Systems > Taking a JavaScript Approach

Taking a JavaScript Approach

The template expression technique described in the previous section works well for sequentially numbered files. Life isn’t always that tidy, however. Frequently, a sequence is composed of a series of static files with disparate names, such as beads.htm, necklaces.htm, earrings.htm, and so on. In situations such as these, JavaScript provides the needed functionality and flexibility.

The technique described in this section relies on three core JavaScript abilities: arrays, string manipulation, and browser control. Here’s how it works:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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