|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
TOP THREE LINKS YOU MUST CLICK ON Real-World AJAX Book Preview AJAX Navigation and Links
Mobile devices, by definition, have limitations. These include limited display, limited input capabilities
By: Ajit Jaokar
May. 16, 2007 07:15 PM
This content is reprinted from Real-World AJAX: Secrets of the Masters published by SYS-CON Books. To order the entire book now along with companion DVDs for the special pre-order price, click here for more information. Aimed at everyone from enterprise developers to self-taught scripters, Real-World AJAX: Secrets of the Masters is the perfect book for anyone who wants to start developing AJAX applications.
Navigation and Links Navigation and Links Recommendations
Navigation Bar: Provide minimal navigation at the top of the page. Two or three links should be enough to provide basic navigation. Navigation should be placed on the top of the page. Any other secondary navigational element can go at the bottom of the page if needed. Balanced Structure: Balance the numbers of links on pages against the depth of navigation. The design should aim to provide a balance between having an excessive number of navigation links on a page and the need to navigate multiple links to reach content. Each retrieval of a navigation page takes time and adds cost so the number of links on a page shouldn't be minimized at the expense of adding page retrievals. Thematic Consistency of Resource Identified by a URI: According to One Web principles, content should be accessible on a range of devices regardless of the differences in presentation capabilities. It's necessary to ensure that links provide a thematically coherent experience when accessed from a device other than the one on which they were captured. For instance, a bookmark captured on one device should be usable on another type of device even if it doesn't yield exactly the same experience. If the page that was bookmarked isn't appropriate to the device that's using it, a suitable alternative that's should be provided. In addition, URIs can be decorated to provide session or other information. If the URI is decorated with session information that's no longer current, the user should be directed to a point in the navigation hierarchy that's appropriate to his device to establish an appropriate session and other parameters. Navigation Mechanisms: Use navigation mechanisms in a consistent way. Using the same navigation mechanisms across a service helps users orient themselves and lets them identify navigation mechanisms more easily. Users of devices that don't have pointing devices have to scroll between hyperlinks using the keypad. Intelligent grouping, perhaps optimized through adaptation according to usage patterns, can assist usability. A drill-down method, based on major headings, can often provide an effective means of navigation; because of the linearized arrangement of content, small screen size, and lack of pointing device, it's often useful to provide a way to jump entire sections of content. At each target of the drill-down navigation, an "up" link should be provided so the user can jump an entire section. Access Keys: Assign access keys to links in navigational menus and frequently accessed functionality. Where there's no pointing device, assigning an access key (a keyboard shortcut) to a link can provide a convenient way for users to access the link and avoid navigating to the link by repeatedly pressing the navigation key. Provide the same access key for links that are repeated across pages, such as links to the home page. When building a list of links, use numbered lists and assign access keys appropriately. It's understood that not all characters can be used as access keys since many mobile devices have limited keyboards. Link Target Identification: Clearly identify the target of each link. Use clear concise descriptive link text to help users decide whether to follow a link. Identify the implications of following a link if the target is notably large and the user might not anticipate this from the context. Note the target file's format unless you know the device supports it. Users of mobile devices can suffer undue delay and cost as a result of following links. It's important to identify where a link leads so users can assess whether following it will interest them. While it's unlikely that the cost in monetary terms of a particular user following a particular link can be specified, it should be possible to give an idea of the size of the resource in bytes or in an abstract way, e.g., that it's a large file. Links to content that's in a different format than the format of the page the link is on (i.e., content that can only be interpreted by other applications or downloads) should be human signposted so that users aren't led to download content that their device may not be able to use. Image Maps: Don't use image maps unless you know that the target client supports them and has sufficient screen area and an appropriate means of selection such as a stylus or navigation keys. When using image maps under these circumstances, use client-side image maps unless the regions required can't be described with an available geometric shape. Don't use a server-side image map unless you know that the client provides a means of selection within the image map. Image maps allow fast navigation, provided the requesting device can support the image involved and provided that there's a way of navigating the map satisfactorily. Up, down, left, right, enter are available on most mobile devices even if no pointing device is present and this is usually sufficient to allow the navigation of the active regions of client-side image maps. Pop-ups: Don't cause pop-ups or other windows to appear and don't change the current window without informing the user. Auto Refresh: Don't create periodically auto-refreshing pages unless you've informed the user and provided a way of stopping it. Redirection: Don't use mark-up to redirect pages automatically. Instead, configure the server to do redirects by way of HTTP 3xx codes.
Page Content and Layout
Page Content: Ensure that content is suitable for use in a mobile context, use clear and simple language, and limit the content to what the user has requested. Since users are looking for specific pieces of information and aren't browsing in the conventional sense, it's important to ensure that the users know upfront what they're getting. If the information specified isn't what the user is looking for, the user can skip the page. Page Size: Divide pages into usable but limited sizes. Ensure that the overall size of a page is appropriate to the bandwidth, the memory limitations of the device, and the delivery channel characteristics if they can be determined. There has to be a balance between page size and the number of pages. Big pages take too long to load and can be affected by the constraints of the device. On the other hand, small pages imply that the user has to make multiple requests for each page. Scrolling: Limit scrolling to one direction, unless secondary scrolling can't be avoided. Navigation Bars, etc.: Ensure that material that's central to the meaning of the page precedes material that isn't. Navigational elements such as menu bars and search functions are often displayed before the actual page content. This can be a hindrance with small devices because it prevents the user from viewing the actual content (which he may not be interested in when he actually sees it). Hence, such navigational elements should be displayed later in the data retrieval process where possible. Graphics: Don't use graphics for spacing. Don't use images that can't be rendered by the device. Avoid large or high-resolution images except where critical information would otherwise be lost. Color: Ensure that the information conveyed with color is also available without color. Ensure that foreground and background color combinations provide sufficient contrast. Support for color varies across devices. Also, in most devices, color contrast is not well supported. This means information that relies on color or color contrast can be misinterpreted. Background Images: Don't use background images unless you know the device supports them. There could be a number of problems with background images - they may not be supported, or when they are supported they may not be rendered correctly. They are "extra" elements that don't add to the value of the content (see the point on the navigation bars above) and finally - the user may have to pay for them (bandwidth costs).
Page Definition
Page Title: Provide a short but descriptive page title. Many mobile browsers don't display the title of a page. Where the title is displayed, the available space may be limited or truncated. Frames: Don't use frames. Structural Elements: Ensure that perceivable structures in the content can be programmatically determined. Use HTML headings and subheadings to indicate the structure of documents. Tables: Don't use tables unless the client is known to support them. Don't use multi-layer tables. Non-Text Items: Provide textual alternatives for non-text elements. Objects/Scripts: Don't embed objects or script in pages unless you know the device supports them. Many mobile clients don't support embedded objects or script and in many cases it's not possible for users to download plug-ins to add support. Content must be designed with this in mind. Design pages as though they were to be displayed on a text-only browser. Image Sizes and Resizing: Always specify the size of images in mark-up and resize images at the server. Valid Mark-up: Create documents that validate to published formal grammars. Refer to www.w3.org/QA/Tools/#validators for more information on valid mark-ups. Measures: Don't use pixel measures and don't use absolute units in mark-up language attribute values and stylesheet property values. Instead use percentage and other relative measures. Stylesheets: Use stylesheets to control layout and presentation unless the device is known not to support them. Organize documents so that they can be read without stylesheets. Keep stylesheets as small as possible. Minimize Mark-up: Use terse, efficient mark-up. For example, don't contribute to page weight by introducing unnecessary white space. If white space is used for formatting, try to ensure that it's stripped down when serving the page. Content Types: Send content in a format known to be supported by the device. Where possible, send content in the client's preferred format. Character Encoding: Ensure that content is encoded using a character encoding that's known to be supported by the target device. Error Messages: Provide informative error messages and a means of navigating away from an error message back to useful information. Cookies: Don't use cookies unless you know the device supports them. Caching: Use caching to reduce data reload.
User Input Minimize Keystrokes: Keep the number of keystrokes to a minimum. Avoid Free Text Entries: Avoid free text entry where possible. Provide Defaults: Provide pre-selected default values where possible. Default Input Mode: Specify a default text entry mode, language, and/or input format, if the target device supports it. Tab Order: Create a logical tab order through links, form controls, and objects. Labels: Label all controls appropriately. Explicitly associate labels with controls where the device supports this. Position labels relative to controls appropriately. This content is reprinted from Real-World AJAX: Secrets of the Masters published by SYS-CON Books. To order the entire book now along with companion DVDs, click here to order. LATEST AJAXWORLD RIA STORIES
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||