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
KVM over IP
Hurricane Shutters
Promotional Pens
Promote Your Website
Laptops
GPS
KVM Switch over IP
Televisions
Dental Insurance
Corporate Awards
Memory Upgrades
Computer Deals
Calling Cards
Boat Donations

          
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 / reference / createonload

CreateOnLoad

Description:
Boolean value indicating whether or not the menu should be created just after the HTML page loads, or when the menu is first called for (its first display).

Value:
Boolean (true or false), Integer (1=true, 0=false), or JavaScript expression that returns a boolean value.

Applies To:
Menus.

Browser Compatibility:
CreateOnLoad is supported in all browsers.

Comments:
When CreateOnLoad is set to true, the menu will be created just after the HTML page finishes loading. If false, menu creation is delayed until the first display of the menu on the page. CreateOnLoad can therefore be used to speed the initial availability of the Web page itself: when CreateOnLoad is set to false for all menus, then no menus are created immediately on page load.

In all cases, for stability and consistency reasons HierMenus will not create menus until after the HTML page finishes loading (see FAQ #10). CreateOnLoad indicates whether the menu should be created immediately after page load (true), or when the menu is first called for.

If a menu is marked permanently visible (IsPermanent) and CreateOnLoad is false, the menu will never be displayed. You can override HierMenus' default menu loading scheme with MenusToBuild, but this is not recommended. Usually it is better to specify CreateOnLoad according to your wishes individually for your menus.

Like all the standard configuration parameters (the special HM_nnn variables, which are typically set in HM_Loader.js, excluded), CreateOnLoad can be assigned individually on a menu by menu basis. Therefore the HierMenus 4/5 parameters CreateTopOnly and CreateChildrenJIT are superseded by CreateOnLoad.

Examples:
// Ok:
CreateOnLoad:true,
CreateOnLoad:0,
CreateOnLoad:(window.thisPage=="cf")?1:0, 
    // if the user defined variable "thisPage" is "cf", 
    // CreateOnLoad is true

// Incorrect:
CreateOnLoad:"false",  // quotes not allowed around booleans
CreateOnLoad:"0",
CreateOnLoad:'(window.thisPage=="cf")?1:0', // no quoted expressions
Default:
true

See Also:
MenusToBuild



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: 3/25/2004
Updated: 3/25/2004
URL: http://www.hiermenuscentral.com/documentation/reference/createonload.html