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

Chapter 8. Mixing Extension Types > Why Mix Extension Types?

Why Mix Extension Types?

Why would we want to mix extension types? There are all sorts of reasons, but they break down into considerations of interface usability versus extension functionality.

Rollovers, Jump Menus, and Navigation Bars, Oh My!

Sometimes the “correct” way to code an extension isn’t the most logical one for the user. For instance, users intuitively expect items that insert things into documents to be part of the Insert bar and Insert menu—Insert > Table, Insert > Image, Insert > Flash, and so forth. But not all insertion tasks are as easy as that. When a user chooses the Insert Rollover object, for instance, what’s happening? Dreamweaver is inserting the code for a linked image into the document at the insertion point, but the program is also inserting a Swap Image function in the head of the document and the relevant function call in the body. Those tasks can’t all be performed by the lowly objectTag() function. The Rollover “object” should really be an object plus a behavior, or maybe some of each combined into a command.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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