spacer

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

home / web / dev / menus / nonlive2

Non-live Related Menus

Developer News
Eclipse Helios Update Brings New PHP Tools
Internet Explorer 9 Ups Standards Support
JBoss Portal 5 Release Easier to Use

Universal Related Popup Menus

Choose a subject:
---> Choose a topic:

Related Select Lists

Choose a subject:
---> Choose a topic:

Changing the related live popups to non-live popups takes one more step. We comment out the "jmp(formName,elementNum)" from the "relate" else clause, to make the left popup non-live for JavaScript 1.0 browsers.

    ...
    aln2=a.length;
    var formNum = getFormNum(formName);
    if (formNum>=0) {
    	formNum++; // reference next form, assume it follows in HTML
    	with (document.forms[formNum].elements[elementNum]) {
    		for (var i=options.length-1;i>0;i--) options[i]=null;
    		for (var i=1;i<aln2;i++) options[i-1]=a[i];
    		options[0].selected=true;
    	}
    }
    } else {
    // jmp(formName,elementNum);
    // commented out to make left menu non-live for js 1.0 browsers
    }
    }

As before, to make the right popup non-live, we simply remove the onChange event from the second SELECT tag.

    <SELECT NAME="m2">
    

With these "non-live" related menus, the left menu changes the right menu for JavaScript 1.1 browsers, but the right one is now not live (removed the onChange from the SELECT tag as in the single non-live menu), users must hit the "Go" button to jump to that page. The left menu is also non-live for JavaScript 1.0 browsers, as we commented out the "jmp(formName,elementNum)" from the "else JavaScript 1.0" clause from the relate function. So to jump to any page within each of these two menus the user must click on the matching Go button.

Comments are welcome

webref The latest from WebReference.com Browse >
Flashmaps' DynamicLocator: Interactive Maps for Small Areas · Flashmaps' AreaSelector: Interactive Maps for Wide Areas · The DB Mapper: Interactive Street-level Maps of U.S. and Canada
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags

 



Created: Oct. 29, 1997
Revised: July 22, 1999

URL: http://webreference.com/dev/menus/nonlive2.html