Welcome!

Machine Learning Authors: Elizabeth White, Yeshim Deniz, Liz McMillan, Pat Romanski, Ed Featherston

Related Topics: Machine Learning

Machine Learning : Article

Real-World AJAX Book Preview: Design of Mobile AJAX Applications

Real-World AJAX Book Preview: Design of Mobile AJAX Applications

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.

Design of Mobile AJAX Applications
Having discussed the resurgence of browser-based applications and the significance of AJAX widgets on mobile devices, we'll turn to the design of AJAX applications/widgets.

Traditionally, standards on the mobile Internet were driven by OMA, the Open Mobile Alliance (www.openmobilealliance.com). With AJAX and Web 2.0, for the first time we're seriously entertaining the possibility of the "One Web," a seamless Web spanning multiple devices and delivering the same information regardless of the device that's used to access it.

As might be expected, the One Web concept is driven by the Internet as opposed to the mobile Internet. The standards bodies governing the idea of One Web are the same as the Internet standardization bodies like W3C (www.w3.org/). W3C is working with other bodies like OMA to deliver a consistent set of One Web recommendations.

Per the W3C documentation, One Web means making, as far as is reasonable, the same information and services available to users regardless of the device they're using. However, it doesn't mean that exactly the same information is available in exactly the same way across all devices. Some services and information are more suitable to and targeted at particular user contexts.

In W3C, the W3C mobile Web initiative (www.w3.org/2005/MWI/Activity) and the Mobile Web Best Practice (MWBP) Working Group (www.w3.org/2005/01/BPWGCharter/Overview.html) are working towards the One Web goal. While some of the standards and guidelines produced by this group are still under discussion, they provide a good basis to design a mobile browsing application and by extension a mobile AJAX application.

The mission of the MWBP Working Group is to develop a set of technical best practices and associated materials in support of developing Web sites that provide an appropriate user experience on mobile devices.

The working group aims to extend the reach of the Web to mobile devices by providing guidelines, checklists, and best practice statements that are easy to comprehend and implement. When implemented by a Web site provider, they will enable users to get the content on mobile devices, particularly small-screen devices such as PDAs, smart phones, and touch-screen devices.

The working group expects to maintain contact with groups such as the Open Mobile Alliance.

Besides creating recommendations and best practices for the One Web, W3C is also working towards the concept of a Mobile OK trustmark. According to W3C the trustmark will serve as the main conformance claim for the best practices document.

By definition, mobile AJAX applications are mobile Web applications. The impact of the preceding discussion is that when we consider the design of mobile AJAX applications, we have to consider it in two facets: the design of a mobile Web site as recommended by the W3C and AJAX-specific considerations as applicable to mobile devices.

To design mobile AJAX applications, we first have to understand W3C's standardization efforts and then the specific factors relating to mobile AJAX.

Also note that the W3C recommendations discussed here pertain only to site usability. In a broader context, usability can be defined as comprising three parts, namely, site usability, device usability, and browser usability. According to W3C definitions:

Site Usability relates to the structure, content, and layout rules of a site and is a measure of the effectiveness of the mobile Web site.

Device Usability pertains to the capability of the equipment being used easily and effectively.

Browser Usability defines the ease of using a browser effectively and doing the functions of reading, navigating, and interacting. The ease of interaction, page rendering, and caching are issues that are frequently used to judge browser usability. Device usability is determined by the device maker and browser usability is defined by the vendor creating the browser.

Factors Affecting the Design of Mobile Browsing Applications
The factors affecting the design of mobile browsing applications are:

Presentation Issues: Because Web pages are created to be displayed on desktops, they can't be presented directly on the mobile device in their original form. Not only is the overall user experience poor, but the content doesn't lay out as originally intended due to the different screen size.

Input: Mobile devices have limited input capacity and it's hard to type in long URLs. In some cases, there's no pointing device, as in some phones, and in general, it's hard to recover from errors.

Bandwidth and Cost: Mobile networks can be slower than fixed line networks. They have a higher latency and in most cases the user pays for data retrieval. The device may support limited types of content. The user may download content only to realize that she can't use it. The user may download content and have to pay for additional data such as advertising. All these factors degrade the user experience and usability.

User Goals: Unlike Web users, mobile users, have a definite purpose when they browse. Web users browse for fun or to explore a topic without a specific goal. The mobile user seeks a specific piece of information and wants it delivered in a format suitable for the device, in other words, a short/exact response to the information request that can be rendered on the target device.

Advertising: It's necessary to be extra vigilant when it comes to ads on the mobile Internet because they can potentially hinder the user experience and may not be free because the user pays for the data download charges.

Device Limitations: Mobile devices impose limits due to screen size and limited input capabilities. There are other limitations from the restrictions on the software that can be executed on a device. In practice, this means browsers can support limited or no plug-in or scripting capabilities

Some activities associated with rendering Web pages are computationally intensive. For example, reflowing pages, laying out tables, processing unnecessarily long and complex stylesheets, and handling invalid mark-up. Such compute-intensive applications push the capabilities of the battery, memory, and communications.

General Design Principles
Establish the Context of the Device: It's necessary to take all reasonable steps to find the capabilities of the target device so that the content can be served to the device in the most suitable form. The techniques used to find the capabilities of a device are beyond our scope but they include CC/PP or Composite Capability/Preference Profiles (www.w3.org/TR/CCPP-struct-vocab/), UAProf or User Agent Profile (www.openmobilealliance.com), CSS Media queries (www.w3.org/TR/css3-mediaqueries/), DDWG output (www.w3.org/2005/01/DDWGCharter/), and DIWG material (http://globalchange.gov/policies/diwg/diwg-summary.html). When insufficient information is available, reasonable defaults should be used.

Exploit Client Capabilities and Don't Take the Least Common Denominator Approach: If a better user experience can be obtained by using the device's capabilities, the W3C recommends that the developer exploit such capabilities.

Work Around Deficient Implementations: The developer should take reasonable steps to work around deficient implementations. Because the software in mobile devices is frequently embedded in the device, there's no easy way to correct or enhance software once it's in the field. So some browser implementations will have known limitations and the developer should cater to them as best he can.

Content Adaptation
Devices can differ in terms of mark-up, image format, image size, and color depth. Hence content has to be adapted so it can best be rendered on the device. The process of altering content to cater to the widely varying characteristics of mobile devices is called content adaptation. Content adaptation is a complex process and its full scope won't be covered here.

In the easiest cases adaptation can be simple and consist of just determining the device type and then choosing content from among a set of previously prepared content appropriate to the device characteristics.

The other extreme involves dynamic content adaptation with the actual content formatted at the time of image retrieval. The adaptation itself can be carried out at three different points: server-side content adaptation, network adaptation, and client-side content adaptation. Currently W3C documents cover only server-side content adaptation.

From a design perspective, the content adaptation section of the W3C recommendation is interesting because it gives us the default delivery context, which represents the least common denominator when sufficient information isn't known to do content adaptation.

The default delivery context is defined as follows:

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
Today most companies are adopting or evaluating container technology - Docker in particular - to speed up application deployment, drive down cost, ease management and make application delivery more flexible overall. As with most new architectures, this dream takes significant work to become a reality. Even when you do get your application componentized enough and packaged properly, there are still challenges for DevOps teams to making the shift to continuous delivery and achieving that reducti...
As hybrid cloud becomes the de-facto standard mode of operation for most enterprises, new challenges arise on how to efficiently and economically share data across environments. In his session at 21st Cloud Expo, Dr. Allon Cohen, VP of Product at Elastifile, will explore new techniques and best practices that help enterprise IT benefit from the advantages of hybrid cloud environments by enabling data availability for both legacy enterprise and cloud-native mission critical applications. By rev...
The next XaaS is CICDaaS. Why? Because CICD saves developers a huge amount of time. CD is an especially great option for projects that require multiple and frequent contributions to be integrated. But… securing CICD best practices is an emerging, essential, yet little understood practice for DevOps teams and their Cloud Service Providers. The only way to get CICD to work in a highly secure environment takes collaboration, patience and persistence. Building CICD in the cloud requires rigorous ar...
Recently, REAN Cloud built a digital concierge for a North Carolina hospital that had observed that most patient call button questions were repetitive. In addition, the paper-based process used to measure patient health metrics was laborious, not in real-time and sometimes error-prone. In their session at 21st Cloud Expo, Sean Finnerty, Executive Director, Practice Lead, Health Care & Life Science at REAN Cloud, and Dr. S.P.T. Krishnan, Principal Architect at REAN Cloud, will discuss how they b...
SYS-CON Events announced today that SkyScale will exhibit at 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. SkyScale is a world-class provider of cloud-based, ultra-fast multi-GPU hardware platforms for lease to customers desiring the fastest performance available as a service anywhere in the world. SkyScale builds, configures, and manages dedicated systems strategically located in maximum-security...
As you move to the cloud, your network should be efficient, secure, and easy to manage. An enterprise adopting a hybrid or public cloud needs systems and tools that provide: Agility: ability to deliver applications and services faster, even in complex hybrid environments Easier manageability: enable reliable connectivity with complete oversight as the data center network evolves Greater efficiency: eliminate wasted effort while reducing errors and optimize asset utilization Security: imple...
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, will discuss how by using...
In this strange new world where more and more power is drawn from business technology, companies are effectively straddling two paths on the road to innovation and transformation into digital enterprises. The first path is the heritage trail – with “legacy” technology forming the background. Here, extant technologies are transformed by core IT teams to provide more API-driven approaches. Legacy systems can restrict companies that are transitioning into digital enterprises. To truly become a lead...
DevOps at Cloud Expo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st 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 no time to w...
SYS-CON Events announced today that Daiya Industry will exhibit at the Japanese Pavilion at 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. Ruby Development Inc. builds new services in short period of time and provides a continuous support of those services based on Ruby on Rails. For more information, please visit https://github.com/RubyDevInc.
When it comes to cloud computing, the ability to turn massive amounts of compute cores on and off on demand sounds attractive to IT staff, who need to manage peaks and valleys in user activity. With cloud bursting, the majority of the data can stay on premises while tapping into compute from public cloud providers, reducing risk and minimizing need to move large files. In his session at 18th Cloud Expo, Scott Jeschonek, Director of Product Management at Avere Systems, discussed the IT and busine...
As businesses evolve, they need technology that is simple to help them succeed today and flexible enough to help them build for tomorrow. Chrome is fit for the workplace of the future — providing a secure, consistent user experience across a range of devices that can be used anywhere. In her session at 21st Cloud Expo, Vidya Nagarajan, a Senior Product Manager at Google, will take a look at various options as to how ChromeOS can be leveraged to interact with people on the devices, and formats th...
First generation hyperconverged solutions have taken the data center by storm, rapidly proliferating in pockets everywhere to provide further consolidation of floor space and workloads. These first generation solutions are not without challenges, however. In his session at 21st Cloud Expo, Wes Talbert, a Principal Architect and results-driven enterprise sales leader at NetApp, will discuss how the HCI solution of tomorrow will integrate with the public cloud to deliver a quality hybrid cloud e...
Is advanced scheduling in Kubernetes achievable? Yes, however, how do you properly accommodate every real-life scenario that a Kubernetes user might encounter? How do you leverage advanced scheduling techniques to shape and describe each scenario in easy-to-use rules and configurations? In his session at @DevOpsSummit at 21st Cloud Expo, Oleg Chunikhin, CTO at Kublr, will answer these questions and demonstrate techniques for implementing advanced scheduling. For example, using spot instances ...
SYS-CON Events announced today that Yuasa System will exhibit at the Japan External Trade Organization (JETRO) Pavilion at 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. Yuasa System is introducing a multi-purpose endurance testing system for flexible displays, OLED devices, flexible substrates, flat cables, and films in smartphones, wearables, automobiles, and healthcare.
Companies are harnessing data in ways we once associated with science fiction. Analysts have access to a plethora of visualization and reporting tools, but considering the vast amount of data businesses collect and limitations of CPUs, end users are forced to design their structures and systems with limitations. Until now. As the cloud toolkit to analyze data has evolved, GPUs have stepped in to massively parallel SQL, visualization and machine learning.
The session is centered around the tracing of systems on cloud using technologies like ebpf. The goal is to talk about what this technology is all about and what purpose it serves. In his session at 21st Cloud Expo, Shashank Jain, Development Architect at SAP, will touch upon concepts of observability in the cloud and also some of the challenges we have. Generally most cloud-based monitoring tools capture details at a very granular level. To troubleshoot problems this might not be good enough.
Organizations do not need a Big Data strategy; they need a business strategy that incorporates Big Data. Most organizations lack a road map for using Big Data to optimize key business processes, deliver a differentiated customer experience, or uncover new business opportunities. They do not understand what’s possible with respect to integrating Big Data into the business model.
When it comes to cloud computing, the ability to turn massive amounts of compute cores on and off on demand sounds attractive to IT staff, who need to manage peaks and valleys in user activity. With cloud bursting, the majority of the data can stay on premises while tapping into compute from public cloud providers, reducing risk and minimizing need to move large files. In his session at 18th Cloud Expo, Scott Jeschonek, Director of Product Management at Avere Systems, discussed the IT and busine...
Enterprises have taken advantage of IoT to achieve important revenue and cost advantages. What is less apparent is how incumbent enterprises operating at scale have, following success with IoT, built analytic, operations management and software development capabilities – ranging from autonomous vehicles to manageable robotics installations. They have embraced these capabilities as if they were Silicon Valley startups. As a result, many firms employ new business models that place enormous impor...