|
|
|
|
Functions
Events
Variables
Libraries
|
|
Syntax
| xml_settings_menu_get(MenuID) |
Parameters
| String | MenuID | ID of the menu to be retreived. |
Return value
| Returns an array containing the information about a menu stored in the XML configuration file. |
Description
The array returned by the function is built as follow:
myMenu['xml']
XML code for the menu.
myMenu['items']['count']
Number of items defined in the XML configuration file for this menu.
myMenu['items'][index]['title']
Title of the menu item.
myMenu['items'][index]['cat']
Category of the menu item.
myMenu['items'][index]['action']
Javascript code to be executed when the user choose this menu item.
To open a web page, the function {link:JS_OPENURL} can be used.
Example: mio_openURL("http://www.mioplanet.com")
myMenu['cats']["string"]
List of categories stored as a text string (^^ as separator).
myMenu['cats'][catIndex]
Category name.
myMenu['cats']["count"]
Number of categories.
|
JavaScript Sample Code
<MIOAPP>
...
<MENUEX id="myMenu">
<ITEM cat="Category" title="Menu Item"><![CDATA[JavaScript code]]></ITEM>
</MENUEX >
<MIOAPP>
|
|
|
|