Navigator |
![]() ![]() ![]() |
Navigator is a control element to navigate over the MoreMotion data sources.
This element requires that the following files are linked to the page in the HEAD section of the HTML document.
Properties dataSource The name of the data source. This name links to a dataSource configuration element through a dataRequest configuration element. The data source must have itemsPerPage and may have pagesPerBlock parameters. When pagesPerBlock parameter is specified then the data service returns the total number of records to let the navigator know know how may pages are available. pagingInfo This property must be bind to the "paging-info" node of the data source to obtain the current paging information. The definition classPrefix The default prefix for the CSS classes used by the Navigator elements is 'navdefault'. See moremotion/face/Navigators/Navigator.css file. If you intend to use more than one navigator with different styles you can include more CSS files and define the class prefix in this property. submitType The submit type of the navigation requests. The valid values are "1. Http Get", "2. Http Post" and "3. Ajax". commandName The name of the navigation command. If the submitType is "3. Ajax" then this name links to a ajaxCommand configuration element. busyImage The HTML Id or the object handle of and HTML element that will be visible until the navigation operation is completed. callbackFunc The name of a Javascript function to be called after the Ajax navigation is completed. The function receives a MultiPartAjaxResponse object as the parameter. errorHandler The name of a Javascript function to be called when an error occurs during the Ajax navigation. The function receives Exception and AjaxResponse objects as the parameters.
AjaxCommand Configuration If submitType property is "3" then the navigation requests to the server are sent with Ajax. If that is the case then the definitions similar to the following should be made in the MoreMotion configuration.
|