spacer

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


home / experts / dhtml / column53
Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

Logo

Hiermenus Go Forth, XVII:
Version 4.0.10 - The Complete Script (Full-Window)



Foolproof Parameters

One of the major features introduced in Version 4 was the "foolproof assignment of parameters." In previous versions, there were no default parameter values and there was a strict adherence to type. That is, a parameter that expected an integer value would not accept a string representation of the integer. As we outlined in our Version 4 parameter discussion in columns 35 to 42, Version 4 parameters accept many different value types from authors, including JS expressions. The script parses the author-defined value and assigns it to the parameter in the expected type.

Parts of this "parsing" of author-defined values take time of course. For example, we "trimmed" all strings to lose extraneous leading and trailing spaces that authors placed by mistake. In Version 4.0.10, we have done away with trimming and other similar checks, in the interest of speed. Authors are simply asked to be more careful when assigning values.

Version 4.0.10, however, does accept all value types as documented, including JS expressions. It does not re-introduce strict type adherence. It only loses some of its author-typo correction powers.

JavaScript Expressions

The HM_UponDisplay, HM_UponHide, evaluate_upon_tree_show and evaluate_upon_tree_hide parameters now work as documented in:

Column 36 - evaluate_upon_tree_show
Column 36 - evaluate_upon_tree_hide

Column 42 - HM_PG_UponDisplay
Column 42 - HM_PG_UponHide

These parameters can be used to hide/show nasty form elements that burn holes in the menus, create image rollovers for menu-related images and much more.



As mentioned, Version 4.0.10 also imtroduces a new feature.


Produced by Peter Belesis and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

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

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint

All Rights Reserved. Legal Notices.
Created: May 15, 2001
Revised: May 15, 2001

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