Welcome!

Machine Learning Authors: William Schmarzo, Pat Romanski, Liz McMillan, Elizabeth White, Jnan Dash

Related Topics: Machine Learning

Machine Learning : Article

AJAX Navigation and Links

Mobile devices, by definition, have limitations. These include limited display, limited input capabilities

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
Mobile devices, by definition, have limitations. These include limited display, limited input capabilities, and the possible absence of a pointing device. Hence structure and navigation become critical in ensuring a good end-user experience. The following design recommendations should be considered:

Navigation and Links Recommendations

  1. Keep URIs short.
  2. Provide minimal navigation at the top of the page.
  3. Balance the numbers of links on pages against the depth of navigation.
  4. Provide a thematically consistent experience.
  5. Use navigation mechanisms consistently.
  6. Assign access keys to links in navigational menus and frequently accessed functionality.
  7. Clearly identify the target of each link.
  8. Don't use image maps unless you know that the target client supports them.
  9. Don't cause pop-ups or other windows to appear and don't change the current window without informing the user.
  10. Don't create periodically auto-refreshing pages.
  11. Don't use mark-up to redirect pages automatically.
URIs of Site Entry Points: Keep the URIs of site entry points short because typing on mobile devices is difficult.

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 and Layout Recommendations

  1. Ensure that content is suitable for use in a mobile context.
  2. Divide pages into usable but limited size portions.
  3. Limit scrolling to one direction, unless secondary scrolling can't be avoided.
  4. Ensure that material that's central to the meaning of the page precedes material that isn't.
  5. Don't use graphics for spacing.
  6. Ensure that information conveyed with color is also available without color.
  7. Don't use background images unless you know that the device supports them.
The page content and layout section discusses elements such as design, the language used in its text, and the spatial relationship between constituent components. It refers to the user's perception of the delivered content and doesn't address technical aspects of how the content is constructed.

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 Definition Recommendations

  1. Provide a short but descriptive page title.
  2. Don't use frames.
  3. Ensure that perceivable structures in the content can be programmatically determined.
  4. Don't use tables unless the client supports them.
  5. Provide textual alternatives for non-text elements.
  6. Don't embed objects or script in pages unless the device supports them.
  7. Always specify the size of the images in the mark-up and resize images at the server.
  8. Create documents that validate to published formal grammars.
  9. Use stylesheets to control layout and presentation unless the device won't support them.
  10. Use terse efficient mark-up.
  11. Send content in a format known to be supported by the device.
  12. Ensure that content is encoded using a character encoding known to be supported by the target device.
  13. Provide informative error messages.
  14. Don't use cookies unless you know the device supports them.
  15. Use caching to reduce data reload.
The page definition section addresses the technical aspects of page creation and covers the following aspects:

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
This section contains statements relating to 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.

More Stories By Ajit Jaokar

Ajit Jaokar is the author of the book 'Mobile Web 2.0' and is also a member of the Web2.0 workgroup. Currently, he plays an advisory role to a number of mobile start-ups in the UK and Scandinavia. He also works with the government and trade missions of a number of countries including South Korea and Ireland. He is a regular speaker at SYS-CON events including AJAXWorld Conference & Expo.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@CloudExpo Stories
"Infoblox does DNS, DHCP and IP address management for not only enterprise networks but cloud networks as well. Customers are looking for a single platform that can extend not only in their private enterprise environment but private cloud, public cloud, tracking all the IP space and everything that is going on in that environment," explained Steve Salo, Principal Systems Engineer at Infoblox, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Conventio...
"Cloud Academy is an enterprise training platform for the cloud, specifically public clouds. We offer guided learning experiences on AWS, Azure, Google Cloud and all the surrounding methodologies and technologies that you need to know and your teams need to know in order to leverage the full benefits of the cloud," explained Alex Brower, VP of Marketing at Cloud Academy, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clar...
In his session at 21st Cloud Expo, Carl J. Levine, Senior Technical Evangelist for NS1, will objectively discuss how DNS is used to solve Digital Transformation challenges in large SaaS applications, CDNs, AdTech platforms, and other demanding use cases. Carl J. Levine is the Senior Technical Evangelist for NS1. A veteran of the Internet Infrastructure space, he has over a decade of experience with startups, networking protocols and Internet infrastructure, combined with the unique ability to it...
The question before companies today is not whether to become intelligent, it’s a question of how and how fast. The key is to adopt and deploy an intelligent application strategy while simultaneously preparing to scale that intelligence. In her session at 21st Cloud Expo, Sangeeta Chakraborty, Chief Customer Officer at Ayasdi, provided a tactical framework to become a truly intelligent enterprise, including how to identify the right applications for AI, how to build a Center of Excellence to oper...
"IBM is really all in on blockchain. We take a look at sort of the history of blockchain ledger technologies. It started out with bitcoin, Ethereum, and IBM evaluated these particular blockchain technologies and found they were anonymous and permissionless and that many companies were looking for permissioned blockchain," stated René Bostic, Technical VP of the IBM Cloud Unit in North America, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Conventi...
Gemini is Yahoo’s native and search advertising platform. To ensure the quality of a complex distributed system that spans multiple products and components and across various desktop websites and mobile app and web experiences – both Yahoo owned and operated and third-party syndication (supply), with complex interaction with more than a billion users and numerous advertisers globally (demand) – it becomes imperative to automate a set of end-to-end tests 24x7 to detect bugs and regression. In th...
In his session at 21st Cloud Expo, James Henry, Co-CEO/CTO of Calgary Scientific Inc., introduced you to the challenges, solutions and benefits of training AI systems to solve visual problems with an emphasis on improving AIs with continuous training in the field. He explored applications in several industries and discussed technologies that allow the deployment of advanced visualization solutions to the cloud.
Agile has finally jumped the technology shark, expanding outside the software world. Enterprises are now increasingly adopting Agile practices across their organizations in order to successfully navigate the disruptive waters that threaten to drown them. In our quest for establishing change as a core competency in our organizations, this business-centric notion of Agile is an essential component of Agile Digital Transformation. In the years since the publication of the Agile Manifesto, the conn...
"MobiDev is a software development company and we do complex, custom software development for everybody from entrepreneurs to large enterprises," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Large industrial manufacturing organizations are adopting the agile principles of cloud software companies. The industrial manufacturing development process has not scaled over time. Now that design CAD teams are geographically distributed, centralizing their work is key. With large multi-gigabyte projects, outdated tools have stifled industrial team agility, time-to-market milestones, and impacted P&L stakeholders.
"ZeroStack is a startup in Silicon Valley. We're solving a very interesting problem around bringing public cloud convenience with private cloud control for enterprises and mid-size companies," explained Kamesh Pemmaraju, VP of Product Management at ZeroStack, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Enterprises are adopting Kubernetes to accelerate the development and the delivery of cloud-native applications. However, sharing a Kubernetes cluster between members of the same team can be challenging. And, sharing clusters across multiple teams is even harder. Kubernetes offers several constructs to help implement segmentation and isolation. However, these primitives can be complex to understand and apply. As a result, it’s becoming common for enterprises to end up with several clusters. Thi...
"Space Monkey by Vivent Smart Home is a product that is a distributed cloud-based edge storage network. Vivent Smart Home, our parent company, is a smart home provider that places a lot of hard drives across homes in North America," explained JT Olds, Director of Engineering, and Brandon Crowfeather, Product Manager, at Vivint Smart Home, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
"Codigm is based on the cloud and we are here to explore marketing opportunities in America. Our mission is to make an ecosystem of the SW environment that anyone can understand, learn, teach, and develop the SW on the cloud," explained Sung Tae Ryu, CEO of Codigm, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
High-velocity engineering teams are applying not only continuous delivery processes, but also lessons in experimentation from established leaders like Amazon, Netflix, and Facebook. These companies have made experimentation a foundation for their release processes, allowing them to try out major feature releases and redesigns within smaller groups before making them broadly available. In his session at 21st Cloud Expo, Brian Lucas, Senior Staff Engineer at Optimizely, discussed how by using ne...
Vulnerability management is vital for large companies that need to secure containers across thousands of hosts, but many struggle to understand how exposed they are when they discover a new high security vulnerability. In his session at 21st Cloud Expo, John Morello, CTO of Twistlock, addressed this pressing concern by introducing the concept of the “Vulnerability Risk Tree API,” which brings all the data together in a simple REST endpoint, allowing companies to easily grasp the severity of the ...
While some developers care passionately about how data centers and clouds are architected, for most, it is only the end result that matters. To the majority of companies, technology exists to solve a business problem, and only delivers value when it is solving that problem. 2017 brings the mainstream adoption of containers for production workloads. In his session at 21st Cloud Expo, Ben McCormack, VP of Operations at Evernote, discussed how data centers of the future will be managed, how the p...
"NetApp is known as a data management leader but we do a lot more than just data management on-prem with the data centers of our customers. We're also big in the hybrid cloud," explained Wes Talbert, Principal Architect at NetApp, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, discussed how from store operations and ...
"We're focused on how to get some of the attributes that you would expect from an Amazon, Azure, Google, and doing that on-prem. We believe today that you can actually get those types of things done with certain architectures available in the market today," explained Steve Conner, VP of Sales at Cloudistics, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.