Please Note:
HierMenus is protected by copyright laws. Use of the HierMenus code requires a paid licensing agreement.
Click Here to Register

Site Navigation
Bulletins
About
Documentation
FAQ
Samples
Known Issues
Technology Jobs

internet.commerce

Partner With Us
Prepaid Phone Card
Get Business Software
Promos and Premiums
Dental Insurance
KVM Switches
Memory Upgrades
Calling Cards
Home Improvement
Best Price
Promotional Products
Web Hosting Directory
PDA Phones & Cases
Baby Photo Contest
Logo Design

          
internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 
HierMenusCentral Enhance the Functionality of Your Web Site with DHTML HierMenus.
    

home / bulletins / 16

current page
 

HierMenus 6.0.2: Release Notes

D.M Ragle, August 25, 2004

A pair of minor Internet Explorer problems are addressed with this HierMenus maintenance release. It is recommended that current users upgrade if they are--or expect that they may--encounter these specific issues.

As a reminder, though our release articles can be appreciated by and may be useful to all DHTML developers and HierMenus fans, the HierMenus script itself is a licensed product and its use on your site(s) requires a paid license agreement. Contact Barry Pullen or call him at (203) 662-2868 for further information (be sure to let him know how you plan to use HierMenus and tell him a bit about your organization, as well).

Large Scrolling Menus are Goofy

In some Internet Explorer situations, it was brought to our attention that scrolling menus can sometimes appear distorted after they are scrolled. Specifics of the distortion vary, but in general some of the lower menu items will sometimes appear at the top of the menu, and the menu scroll bars will not be positioned properly, sometimes appearing within the menu itself, and sometimes appearing with the top scroll bar beneath the bottom scroll bar!

Bottom menu items appear on top of top menu items
This menu consists of items numbered 1 through 40, from top to bottom. As the menu is scrolled down, notice that some of the lower numbered menu items incorrectly appear at the top of the scrolling menu.
A more drastic example: The lower scrollbar is incorrectly positioned in the middle of the menu.
In a more drastic example, the lower menu items appear at the top of the menu, and the lower scrollbar is incorrectly displayed almost at the top of the menu.

After testing, we were able to narrow this behavior down to two variables. First, a large number of menu items--in our tests, over 30--had to be visible in the scrolling menu on the page (i.e., at least 30 items had to be visible on the page at the same time without scrolling). Second, the user's monitor had to be set to a higher resolution; at least 800x600, with the problem appearing more readily in higher resolutions. We were unable to trigger the problem in 640x480 resolutions no matter how many menu items were displayed on the page; and in higher resolutions if we reduced the number of menu items displayed simultaneously (by increasing the font size for the menu items, for example) the problem went away.

We believe this to be a display bug in Internet Explorer; both because it only seems to affect certain resolution displays, and because we found that updating some other, unrelated area of the page--such as firing an alert or updating a text input box--while the menu was scrolling removed the problem. Additionally, the problem does not seem to effect any other DOM browsers (Opera, Safari, Mozilla) even though they use nearly identical logic.

As a work around, we've decided to momentarily hide the menu while it is scrolling, and then make it reappear again after the scroll movement has been processed; which seems to be enough of a hint to Internet Explorer to properly readjust the menu display on the screen. The actual hiding/displaying of the menu is handled within the same thread without any other display logic intervening; so it is not actually seen by the user. After making this minor change, we were unable to reproduce the original problem in any window resolution, with no noticeable change in the scrolling menu displays themselves.

It's Better to be Greedy

One user reported to us another Internet Explorer problem that, despite our best efforts, we were unable to replicate on our own test machines. Specifically, one of our regular expressions was triggering this error as soon as HM was loaded on the page:

Error: Unexpected Quantifier

Unfortunately, since we are unable to replicate the problem on any of our own machines, we can only guess at the cause; and we believe that to be spotty support for "non-greedy" quantifiers. In basic terms, a non-greedy quantifier--indicated by a question mark following the general quantifiers of + or *--allows a regular expression to match as few of the tokens prior to the quantifiers as possible; as opposed to the default behavior which is to match as many of the preceeding tokens as possible. Whether you understand that or not isn't all that important; but the interesting thing to note is that support for non-greedy quantifiers was added to JavaScript after support for other quantifiers was.

Our original belief was that all IE5+ browsers supported non-greedy quantifiers, and again, that is indeed what we saw in our own testing. Nonetheless, we don't really need them; as the problem RegExp that used them can easily be written another way. This is in fact what we've done in HM6.0.2; so hopefully the Unexpected Quantifier will not resurface on those few machines and configurations that seem to spawn it.

Conclusion

The above two changes are the only changes made to HierMenus v6.0.2; and in fact the only file that saw any significant changes in this release is HM_ScriptDOM.js (so if you are upgrading from 6.0.1, it should be adequate to simply replace your existing HM_ScriptDOM.js with the new version, if you like). Again, if you suspect these two problems may occur in your particular implementation, it is recommended that you apply the upgrade.

current page
 



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
Created: 8/25/2004
Updated: 8/25/2004
URL: http://www.hiermenuscentral.com/bulletins/16/