spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com


home / experts / dhtml / column46
Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

Logo

Hiermenus Go Forth, X:
Version 4.0.3 - The Complete Script (Full-Window)



Promises To Keep

In our first Version 4 column, we promised:

HM Version 4 is comprised of several external files, each one optimized for a particular browser. Only the optimized file is loaded, giving users only the code necessary for their browser.

The original feedback was negative. Most authors believed that this approach would lead to a "maintenance nightmare." We therefore reneged on our promise and produced a one-size-fits-all script. Well, the feedback became even more negative. Our original instincts seem to have been correct: The single script is more nightmarish than the separate ones. With Version 4.0.3, we move to browser-specific scripts.

hierMenus.js R.I.P.

Our external scripts need different names, of course, so we finally lay hierMenus.js to rest. The new external scripts identify the browser and follow our Version 4 naming scheme:

hierArrays.js R.I.P.

It follows that the external array file should also be renamed to follow the Version 4 naming scheme, so it is now called HM_Arrays.js.

onload

In the interest of menu-creation speed, Versions 4.0 --> 4.0.2 created the menu elements during page load. Creation speed was truly improved and the page's onload event handler was freed up for use by other scripts.

However, problems arose for nearly all browsers:

Therefore, check for conflicting onload handlers in other scripts or your page's BODY tag when using Version 4.0.3.


More notes on the next page.


Produced by Peter Belesis and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

All Rights Reserved. Legal Notices.
Created: Jan 23, 2001
Revised: Jan 23, 2001

URL: http://www.webreference.com/dhtml/column46/2.html