Welcome!

Machine Learning Authors: Rene Buest, Liz McMillan, Jason Bloomberg, Pat Romanski, Rajeev Kozhikkattuthodi

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
"We do one of the best file systems in the world. We learned how to deal with Big Data many years ago and we implemented this knowledge into our software," explained Jakub Ratajczak, Business Development Manager at MooseFS, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
Five years ago development was seen as a dead-end career, now it’s anything but – with an explosion in mobile and IoT initiatives increasing the demand for skilled engineers. But apart from having a ready supply of great coders, what constitutes true ‘DevOps Royalty’? It’ll be the ability to craft resilient architectures, supportability, security everywhere across the software lifecycle. In his keynote at @DevOpsSummit at 20th Cloud Expo, Jeffrey Scheaffer, GM and SVP, Continuous Delivery Busine...
In his session at @ThingsExpo, Eric Lachapelle, CEO of the Professional Evaluation and Certification Board (PECB), provided an overview of various initiatives to certify the security of connected devices and future trends in ensuring public trust of IoT. Eric Lachapelle is the Chief Executive Officer of the Professional Evaluation and Certification Board (PECB), an international certification body. His role is to help companies and individuals to achieve professional, accredited and worldwide re...
SYS-CON Events announced today that TechTarget has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TechTarget storage websites are the best online information resource for news, tips and expert advice for the storage, backup and disaster recovery markets.
The current age of digital transformation means that IT organizations must adapt their toolset to cover all digital experiences, beyond just the end users’. Today’s businesses can no longer focus solely on the digital interactions they manage with employees or customers; they must now contend with non-traditional factors. Whether it's the power of brand to make or break a company, the need to monitor across all locations 24/7, or the ability to proactively resolve issues, companies must adapt to...
You know you need the cloud, but you’re hesitant to simply dump everything at Amazon since you know that not all workloads are suitable for cloud. You know that you want the kind of ease of use and scalability that you get with public cloud, but your applications are architected in a way that makes the public cloud a non-starter. You’re looking at private cloud solutions based on hyperconverged infrastructure, but you’re concerned with the limits inherent in those technologies.
"Loom is applying artificial intelligence and machine learning into the entire log analysis process, from start to finish and at the end you will get a human touch,” explained Sabo Taylor Diab, Vice President, Marketing at Loom Systems, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
@DevOpsSummit at Cloud Expo taking place Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center, Santa Clara, CA, is co-located with the 21st International Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is ...
SYS-CON Events announced today that Datanami has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Datanami is a communication channel dedicated to providing insight, analysis and up-to-the-minute information about emerging trends and solutions in Big Data. The publication sheds light on all cutting-edge technologies including networking, storage and applications, and the...
SYS-CON Events announced today that EnterpriseTech has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. EnterpriseTech is a professional resource for news and intelligence covering the migration of high-end technologies into the enterprise and business-IT industry, with a special focus on high-tech solutions in new product development, workload management, increased effi...
For organizations that have amassed large sums of software complexity, taking a microservices approach is the first step toward DevOps and continuous improvement / development. Integrating system-level analysis with microservices makes it easier to change and add functionality to applications at any time without the increase of risk. Before you start big transformation projects or a cloud migration, make sure these changes won’t take down your entire organization.
Cloud promises the agility required by today’s digital businesses. As organizations adopt cloud based infrastructures and services, their IT resources become increasingly dynamic and hybrid in nature. Managing these require modern IT operations and tools. In his session at 20th Cloud Expo, Raj Sundaram, Senior Principal Product Manager at CA Technologies, will discuss how to modernize your IT operations in order to proactively manage your hybrid cloud and IT environments. He will be sharing bes...
A look across the tech landscape at the disruptive technologies that are increasing in prominence and speculate as to which will be most impactful for communications – namely, AI and Cloud Computing. In his session at 20th Cloud Expo, Curtis Peterson, VP of Operations at RingCentral, highlighted the current challenges of these transformative technologies and shared strategies for preparing your organization for these changes. This “view from the top” outlined the latest trends and developments i...
Automation is enabling enterprises to design, deploy, and manage more complex, hybrid cloud environments. Yet the people who manage these environments must be trained in and understanding these environments better than ever before. A new era of analytics and cognitive computing is adding intelligence, but also more complexity, to these cloud environments. How smart is your cloud? How smart should it be? In this power panel at 20th Cloud Expo, moderated by Conference Chair Roger Strukhoff, paneli...
SYS-CON Events announced today that MobiDev, a client-oriented software development company, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MobiDev is a software company that develops and delivers turn-key mobile apps, websites, web services, and complex software systems for startups and enterprises. Since 2009 it has grown from a small group of passionate engineers and business...
Hardware virtualization and cloud computing allowed us to increase resource utilization and increase our flexibility to respond to business demand. Docker Containers are the next quantum leap - Are they?! Databases always represented an additional set of challenges unique to running workloads requiring a maximum of I/O, network, CPU resources combined with data locality.
SYS-CON Events announced today that GrapeUp, the leading provider of rapid product development at the speed of business, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Grape Up is a software company, specialized in cloud native application development and professional services related to Cloud Foundry PaaS. With five expert teams that operate in various sectors of the market acr...
SYS-CON Events announced today that Ayehu will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on October 31 - November 2, 2017 at the Santa Clara Convention Center in Santa Clara California. Ayehu provides IT Process Automation & Orchestration solutions for IT and Security professionals to identify and resolve critical incidents and enable rapid containment, eradication, and recovery from cyber security breaches. Ayehu provides customers greater control over IT infras...
Artificial intelligence, machine learning, neural networks. We’re in the midst of a wave of excitement around AI such as hasn’t been seen for a few decades. But those previous periods of inflated expectations led to troughs of disappointment. Will this time be different? Most likely. Applications of AI such as predictive analytics are already decreasing costs and improving reliability of industrial machinery. Furthermore, the funding and research going into AI now comes from a wide range of com...
In this presentation, Striim CTO and founder Steve Wilkes will discuss practical strategies for counteracting fraud and cyberattacks by leveraging real-time streaming analytics. In his session at @ThingsExpo, Steve Wilkes, Founder and Chief Technology Officer at Striim, will provide a detailed look into leveraging streaming data management to correlate events in real time, and identify potential breaches across IoT and non-IoT systems throughout the enterprise. Strategies for processing massive ...