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














          
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 / documentation / upgrade / conversion tool

HierMenus 4/5 Array Conversion Tool

Follow the steps below to convert your existing HierMenus 4/5 configuration (menu arrays) to the new HierMenus 6 configuration format.

  1. Locate and copy all of your existing global variable settings (HM_GL_xxx) and paste them into the box below. In most HierMenus implementations, the global variable settings are located in your current HM_Loader.js file. Since you cannot continue to use your existing HM_Loader.js file with HierMenus 6, and since most default parameter settings are now included within the HierMenus 6 configuration file, you must copy and paste in your current global settings so that the conversion tool can properly apply them.

  2. If you currently commonly use page specific variables on your pages (HM_PG_xxx), you should include them in the box below, as well (beneath the global variable settings). Note that in a great many (most, in fact) version 4/5 implementations that use page specific variables, the variables themselves are misused. Page specific variables should be included only on exception pages; that is, pages that somehow differ from the default menu displays on the rest of your site. If you are using page specific variables on every page of your site, then you are doing no more than what you could do by simply assigning global parameter settings within your existing HM_Loader.js file.

    The conversion tool will produce a file suitable for global use on your site. Therefore, if you use the same set of page specific variables on every page of your site, then you should copy them into the box below. If, on the other hand, you use page specific variables to simply differentiate a few pages on your site, then you should not include those page specific variables in the box below; rather, you must instead convert these page specific variable settings individually via the advanced topic Page Specific Parameter Settings in the setup instructions.

  3. Copy and paste the contents of your existing HM_Arrays.js file into the box below, beneath your global and (optional) page specific parameter settings.

  4. Special care must be taken in the processing of JavaScript expressions. In order for the conversion script to work properly, all JavaScript expressions that you use in your parameter or menu array settings must be quoted. Therefore, you must add enclosing quotes to any JavaScript expression that you specify that does not already have enclosing quotes. For example, if your original assignments look like this:

    HM_GL_MenuWidth = myWidth1;
    HM_Array1=[[(window.AltCalc=="assigned")?myWidth2:myWidth1,,,],
    ...

    then your new setting will look like this:

    HM_GL_MenuWidth = "myWidth1";
    HM_Array1=[['(window.AltCalc=="assigned")?myWidth2:myWidth1',,,],
    ...

    Note that the second expression (the one within the menu array) already contained quotes within it, and we therefore used single quotes on the outside of the expression when we added our own. Similarly, if the expression already contains single quotes, use double quotes on the outside.

    When the conversion is completed, you will then need to go back through the resulting file and double check your JavaScript expressions to ensure they are or are not quoted as per your needs. The conversion script will, unfortunately, be unable to distinguish between an intended JavaScript expression and a normal string, and will therefore leave all JavaScript expressions in quotes when it produces its converted output. In HierMenus version 6, the only parameters that accept JavaScript expressions within quotes are TopMenuX, TopMenuY, ChildMenuX, ChildMenuY, TopUponDisplay, TopUponHide, ChildUponDisplay, and ChildUponHide.

  5. Click the "Perform Conversion" button to generate your HierMenus 6 configuration file. The resulting file will appear in a new page, along with any further instructions if and when necessary.

Contact us if you have any problems with the conversion routine.

     


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
Intel PDF: Virtualization Delivers Data Center Efficiency
Intel eBook: Managing the Evolving Data Center
Microsoft Article: BitLocker Brings Encryption to Windows Server 2008
Symantec eBook: The Guide to E-Mail Archiving and Management
Microsoft Article: RODCs Transform Branch Office Security
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
Avaya Article: Advancing the State of the Art in Customer Service
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Avaya Article: Avaya AE Services Provide Rapid Telephony Integration with Facebook
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Seminar: Efficiencies in Hardware/Software Virtualization
HP Webcast: Disaster Recovery Planning
Go Parallel Video: Performance and Threading Tools for Game Developers
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
IBM TCO eKIT: Your IT Budget is Under Attack, Get in Control
IBM Energy Efficiency eKIT: Learn How to Reduce Costs
30-Day Trial: SPAMfighter Exchange Module
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
Microsoft Article: Silverlight Streaming--Free Video Hosting for All
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
HP Demo: StorageWorks EVA4400
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
Created: 3/25/2004
Updated: 5/09/2006
URL: http://www.hiermenuscentral.com/documentation/upgrade/convert.html