Moxi Media Inc.
<select-menu-option> Discussion Forum
IMF Developer's Guide » Site Configuration » <select-menu-option>  

The <select-menu-option> element is used to control the selection options displayed on the select menu (imfSelectMenu.jsp). This element is repeated multiple times to define the individual options that appear on the page.

The options shown on the Select Menu page are a combination of the values read from the default site configuration file and the application's site configuration file. If an option is found in both files, the one in the application's site configuration file replaces the value defined in the default file. To turn off an option set in the default site configuration file, define an option in your application's site configuration file with the same description and the enabled attribute equal to false.

Frequency Parent Elements (the <select-menu-option> element is valid within):
POS+ <site-config>
   

Frequency Description (in this context)
POS+ The <select-menu-option> element may appear zero or more times in the <site-config> element in the specified sequence.
   

Attributes Description
description The text description for the option to appear on the Select Menu page. Required.
url The URL of the script to run when the option is selected. The URL can contain the special variable $IMF or $IMF to specify that the document is relative to the IMF installation directory. Absolute URLs or javascript references may also be used. URLs that don't start with http: or javascript: or $IMF or $IMF are resolved relative to the location of the XML file. Required.
target The name of the frame that the url should be executed in. Suggested choices are "dataFrame", "hiddenFrame" or "_blank". Optional, defaults to "dataFrame".
enabled Whether the option appears on the select menu page. This is used to turn off an option that has been defined in the default site configuration file. Valid choices are "true" or "false". Optional, defaults to true.
   

Example:

<select-menu-option description="Selected sets" url="$IMF/imfSelectSetLayerChoose.jsp" target="dataFrame" enabled="true"/>
<select-menu-option description="Select by layer" url="$IMF/imfSelectByLayer.jsp" target="dataFrame" enabled="true"/>
<select-menu-option description="Select using query builder" url="$IMF/imfSelectQueryBuilderFormPopup.jsp" target="hiddenFrame" enabled="true"/>
<select-menu-option description="Select by attribute" url="$IMF/imfSelectByAttributeForm.jsp" target="dataFrame" enabled="true"/>
<select-menu-option description="Select by point" url="JavaScript:selectBy('point')" target="dataFrame" enabled="true"/>
<select-menu-option description="Select by buffer" url="$IMF/imfSelectByBufferForm.jsp" target="dataFrame" enabled="true"/>
<select-menu-option description="Select by radius" url="$IMF/imfSetActiveTool.jsp?name=Select+Radius" target="hiddenFrame" enabled="true"/>
<select-menu-option description="Select by box" url="JavaScript:selectBy('box')" target="dataFrame" enabled="true"/>
<select-menu-option description="Select by polygon" url="JavaScript:selectBy('polygon')" target="dataFrame" enabled="true"/>
<select-menu-option description="Clear selections" url="$IMF/imfClear.jsp" target="dataFrame" enabled="true"/>

Valid HTML 4.01!