Welcome!

Machine Learning Authors: Elizabeth White, Liz McMillan, Jack Jachner, Pat Romanski, Progress Blog

Related Topics: Machine Learning

Machine Learning : Article

Real-World AJAX Book Preview: Browsing Applications and the Role of AJAX

Real-World AJAX Book Preview: Browsing Applications and the Role of AJAX

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.

Browsing Applications and the Role of AJAX

AJAX - An Overview
AJAX isn't new. It's a combination of a number of existing technologies acting together. Namely:

  • XHTML and CSS for standards-based presentation
  • Document Object Model for dynamic display and interaction
  • XML and XSLT for data interchange and manipulation
  • XMLHttpRequest for asynchronous data retrieval
  • JavaScript to tie everything together
Until AJAX came along, it wasn't easy to replicate the rich and responsive interaction design of native applications. AJAX is different from other previous attempts to address this problem since it's based on existing non-proprietary standards that are already familiar to developers.

In traditional Web applications, most user action triggers an HTTP request. The server does some processing and returns the result back to the user. While the server is processing, the user waits.

The "start-stop-start" nature of Web applications is good from a technical standpoint but not from a user standpoint since almost all user interaction results in trips to the server and the user waits while the server does the work.

AJAX solves this problem by using an AJAX engine. At the start of the session, the AJAX application loads the AJAX engine. The AJAX engine is written in JavaScript as a JavaScript library and sits in a hidden frame. The user interacts with the AJAX engine instead of the Web server. If the user interaction doesn't require a trip to the server, the AJAX engine handles the interaction on its own. When the user interaction needs some data from the server, the AJAX engine makes a call asynchronously on an XMLHttp request without interrupting the user's flow.

In this sense AJAX is asynchronous because the AJAX engine is communicating with the server asynchronously to the user interaction. So the user gets a seamless experience; in other words he's not waiting.

That's AJAX in a nutshell as we understand it.

AJAX on Mobile Devices
Now how does AJAX differ on mobile devices?

By definition, it doesn't.

In other words, as expected, a browser that supports AJAX applications on the mobile Internet will also support XMLHttp, JavaScript, CSS, and an AJAX engine.

As of May 2006, very few mobile browsers supported AJAX, but this is changing and we expect most vendors and device makers to support AJAX.

However, it's important to understand that mobile devices need more than the mere ability to support AJAX components. Support for AJAX components is necessary but isn't a sufficient condition to create new applications.

To appreciate this, we have to understand the technical limitations of the mobile browsing model. The browser model is document-centric; it's based on mark-up languages. In contrast, downloaded and native applications are application-centric since they're based on a programming language.

To be really useful, any mobile application development model must be able to access data elements that are tightly coupled to the device. These include the telephony API, phone book, text messages, messaging API, call records, SIM card, calendar, Bluetooth stack, media player, file system, and so on.

Applications running on the phone can access these services through APIs. For the most part, applications running on browsers can't access these functions except for a few proprietary solutions. Besides supporting AJAX components like JavaScript and XMLHttp, we also need an additional software component running on the device that abstracts the device APIs.

Currently only Opera browsers have announced support for AJAX but we expect others to follow suit (www.opera.com). The Opera platform provides an AJAX engine and access to device APIs (www.opera.com/products/mobile/platform/). The Opera platform is a browser-based programming environment that abstracts the native device APIs through a set of JavaScript APIs and so provides developers with access to the low-level functions on the device from the browser.

It also provides an application framework for developers to build their own mobile applications. We'll discuss the Opera platform and its APIs in greater detail when we discuss mobile applications development.

Widgets and the Disruptive Potential of AJAX
AJAX has some obvious advantages on the mobile Internet. AJAX is significant because it has momentum and the support of the developer community. It also provides a richer user interface. AJAX makes browsing applications richer and bridges the gap between the Web on the Internet and on the mobile Internet.

However, the disruptive potential of AJAX lies in its enabling widgets.

What's a widget?

Widgets aren't new. They have two meanings in computing. They can mean the components of the graphical user interfaces that the user interacts with (for example, radio buttons or combo boxes). Alternately, they can also refer to small "helper" applications.

We're concerned with the latter, the helper-type applications. These helper-type application widgets were originally seen on the Mac OS and they do small standalone tasks. Although widgets are very simple applications, the widget model is popular because it's easy to develop widgets using a few lines of JavaScript/VBScript.

Critically, from our perspective, the popularity of AJAX has led to a resurgence of interest in widgets. Of course, AJAX isn't the only path to creating widgets. Widgets can be implemented using mechanisms such as Yahoo widgets, formerly called Konfabulator (http://widgets.yahoo.com/), and other methods.

Increasingly widgets are also supported at the operating system and browser levels. Mac OS X 10.4 supports widgets via the Dashboard. Microsoft Windows Vista will provide widgets by Windows Sidebar and, in February 2006 Opera announced support for widgets in Opera 9. In Linux, SuperKaramba lets you put widgets on your desktop (www.superkaramba.com ).

Support for widgets at the mobile-browser level is very interesting for developers. The Opera platform is the first mobile AJAX framework. It also has a corresponding browser framework. However, unlike other frameworks, it's fully designed for mobile devices in the sense that it uses the same code base on the browser and the mobile device.

With minor configuration changes, the desktop/browser widget can also run on the mobile device. From a developer's perspective, there are more ways than one to monetize the widget (desktop, mobile, and browser).

Support for AJAX widgets at a browser level makes mobile widgets very disruptive.

AJAX is an open standard and conforms to the overall ethos of Web 2.0. Widgets can also call other widgets. Complex applications can be developed from simple widgets. Finally, AJAX widgets are quick to develop and easy to deploy and are capable of drawing revenue from the so-called "Long Tail."

In most situations, 80% of the revenue comes from 20% of the products/services. The remaining 80% of the products have low demand and low sales. These constitute the so-called "long tail". The principle of harnessing the long tail argues that collectively these low-volume/low-sales products can add up to market share that equals or exceeds the few bestsellers, provided the distribution channel is large enough and the per-unit production cost is low. The long tail is depicted in Figure 4.5 with the lighter shade

AJAX-based widgets can be used to develop quick and cheap applications for the long tail.

So to recap:

  • Widgets built on AJAX are based on open standards and are part of Web 2.0.
  • Because AJAX widgets can be deployed on the desktop, browser, and a mobile device with minor modifications, the developer can use the same code base to create applications that can earn revenue from three sources: desktop, browser, and mobile.
  • Widgets can call other widgets, so complex applications can be developed from simple components.
  • AJAX widgets are quick to develop and easy to deploy. They are capable of contributing revenue from the "long tail."

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
Blockchain is a shared, secure record of exchange that establishes trust, accountability and transparency across business networks. Supported by the Linux Foundation's open source, open-standards based Hyperledger Project, Blockchain has the potential to improve regulatory compliance, reduce cost as well as advance trade. Are you curious about how Blockchain is built for business? In her session at 21st Cloud Expo, René Bostic, Technical VP of the IBM Cloud Unit in North America, will discuss th...
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, will provide 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 ...
Internet of @ThingsExpo, 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 Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devic...
While some vendors scramble to create and sell you a fancy solution for monitoring your spanking new Amazon Lambdas, hear how you can do it on the cheap using just built-in Java APIs yourself. By exploiting a little-known fact that Lambdas aren’t exactly single-threaded, you can effectively identify hot spots in your serverless code. In his session at @DevOpsSummit at 21st Cloud Expo, Dave Martin, Product owner at CA Technologies, will give a live demonstration and code walkthrough, showing how ...
SYS-CON Events announced today that Elastifile 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. Elastifile Cloud File System (ECFS) is software-defined data infrastructure designed for seamless and efficient management of dynamic workloads across heterogeneous environments. Elastifile provides the architecture needed to optimize your hybrid cloud environment, by facilitating efficient...
As DevOps methodologies expand their reach across the enterprise, organizations face the daunting challenge of adapting related cloud strategies to ensure optimal alignment, from managing complexity to ensuring proper governance. How can culture, automation, legacy apps and even budget be reexamined to enable this ongoing shift within the modern software factory?
There is only one world-class Cloud event on earth, and that is Cloud Expo – which returns to Silicon Valley for the 21st Cloud Expo at the Santa Clara Convention Center, October 31 - November 2, 2017. Every Global 2000 enterprise in the world is now integrating cloud computing in some form into its IT development and operations. Midsize and small businesses are also migrating to the cloud in increasing numbers. Companies are each developing their unique mix of cloud technologies and service...
SYS-CON Events announced today that Golden Gate University 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. Since 1901, non-profit Golden Gate University (GGU) has been helping adults achieve their professional goals by providing high quality, practice-based undergraduate and graduate educational programs in law, taxation, business and related professions. Many of its courses are taug...
@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 ...
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 DXWorldExpo has been named “Global 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. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
SYS-CON Events announced today that Grape Up 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. Grape Up is a software company specializing 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 across the U.S. and Europe, Grape Up works with a variety of customers from emergi...
With Cloud Foundry you can easily deploy and use apps utilizing websocket technology, but not everybody realizes that scaling them out is not that trivial. In his session at 21st Cloud Expo, Roman Swoszowski, CTO and VP, Cloud Foundry Services, at Grape Up, will show you an example of how to deal with this issue. He will demonstrate a cloud-native Spring Boot app running in Cloud Foundry and communicating with clients over websocket protocol that can be easily scaled horizontally and coordinate...
From 2013, NTT Communications has been providing cPaaS service, SkyWay. Its customer’s expectations for leveraging WebRTC technology are not only typical real-time communication use cases such as Web conference, remote education, but also IoT use cases such as remote camera monitoring, smart-glass, and robotic. Because of this, NTT Communications has numerous IoT business use-cases that its customers are developing on top of PaaS. WebRTC will lead IoT businesses to be more innovative and address...
21st International Cloud Expo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud strategy. Me...
In his session at 20th Cloud Expo, Scott Davis, CTO of Embotics, discussed how automation can provide the dynamic management required to cost-effectively deliver microservices and container solutions at scale. He also discussed how flexible automation is the key to effectively bridging and seamlessly coordinating both IT and developer needs for component orchestration across disparate clouds – an increasingly important requirement at today’s multi-cloud enterprise.
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...
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, will address 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 t...
Recently, WebRTC has a lot of eyes from market. The use cases of WebRTC are expanding - video chat, online education, online health care etc. Not only for human-to-human communication, but also IoT use cases such as machine to human use cases can be seen recently. One of the typical use-case is remote camera monitoring. With WebRTC, people can have interoperability and flexibility for deploying monitoring service. However, the benefit of WebRTC for IoT is not only its convenience and interopera...
Any startup has to have a clear go –to-market strategy from the beginning. Similarly, any data science project has to have a go to production strategy from its first days, so it could go beyond proof-of-concept. Machine learning and artificial intelligence in production would result in hundreds of training pipelines and machine learning models that are continuously revised by teams of data scientists and seamlessly connected with web applications for tenants and users.