August 08, 2005

Backbase widgets work wonders

Mature AJAX toolkit rewards learners of BXML with highly interactive Web clients

One fertile area of programming today is the AJAX (asynchronous JavaScript and XML) toolkit. The buzzword may only be a few months old, but everyone seems to instinctively know that a nice library or toolkit will make it much easier to build sophisticated JavaScript-based clients that run in a basic Web browser. The Amsterdam-based Backbase has been building its library since long before the buzzword arrived and continues to produce some of the more sophisticated results on the market.

Backbase Web clients are amazing. The company offers several customizable examples that make it simple to spin up a Web page with objects to drag and drop. One example lets you create four windows with news and weather in them. They float in the browser like real windows float in an OS. It’s no stretch to say you could create a complete Mac-like interface in just a few lines in the HTML file.

About that HTML file: Backbase pages have an HTML suffix and the Web server treats them as such, but these files actually bear little likeness to HTML. They do contain familiar HTML tags, but the most sophisticated Backbase files are filled with Backbase’s own version of XML called BXML.

Much of the work in Backbase development requires joining together these XML tags. The libraries may be written in JavaScript, but you don’t need to use this JavaScript for very much. Instead, you’re more likely to build up XML descriptions of the Web pages and the actions that happen when events occur.

Extraordinary HTML

For instance, a Backbase Web page includes a link tag that starts off with an ‘a’ like a standard link, but it includes unfamiliar attributes such as b:action=‘load’ or b:url=‘window-01.xml’ or b:mode=‘aslastchild.’ These are parsed by the Backbase libraries and interpreted by them.

Many of the tags have no resemblance to HTML. The actions are linked to events by creating an <s:event> tag and filling it with <s:task> tags, not by writing JavaScript. There are <s:task> tags for all of the major changes that can be made in the Web page, such as selecting some text in a field. The result is a well-structured hierarchy of XML.

The good news is that the Backbase architects have a talent for elegant solutions, unlike the cluster of committees that produced the current mess called JavaScript. The event mechanism is straightforward and the XML provides a good amount of discipline.

The bad news is that you can’t do much with your hard-earned knowledge of producing cross-browser JavaScript. The API is, for most intents and purposes, an entirely new language. It’s smaller, cleaner, and crisper, but it’s still new. If you’re fed up by the lack of consistency in JavaScript, you’ll enjoy the rigidity of Backbase. Still, some JavaScript coders will resist Backbase, because it can’t be learned incrementally.

There’s no arguing with the results, though. I built several Web pages and modified some of the built-in examples. It’s simple, for instance, to create a very swish store by editing a few XML files that describe the objects. Several of the Backbase examples like to separate the data from the display logic. You don’t even touch the HTML or JavaScript; the Backbase code parses the XML to get the information about the items for sale. The coding is filled with XPath logic, which will make XML lovers happy.

Test Center Scorecard
30%30%15%15%10%
Backbase 3.099788
8.5
Very Good
Close

On Twitter now

Application development

Powered by Twitter

White Paper

D2D Virtual Tape Library Replication Primer

This whitepaper explains the terminology and concepts behind Data Replication technologies and establishes some sizing rules through worked examples. Learn the new paradigm in disaster tolerance—protect data anywhere.

Download now »

White Paper

An Alternative to Virtualization for Datacenter Cost Savings

Server virtualization is a popular option for dealing with mounting datacenter costs. Another equally promising approach is the use of an Application Delivery Controller. Citrix NetScaler provides a low-cost way for organizations to reduce their server count and accrue cost savings from a reduction in space, cooling, power and personnel.

Download now »

White Paper

Why Your Firewall, VPN, and IEEE 802.11i Aren't Enough to Protect Your Network

The emergence of WLANs has created a new breed of security threats to enterprise networks.

Included in HP ProCurve WLAN solutions is security technology that alleviates threats from WLANs through:
* Monitoring wireless activity inside and out of the enterprise
* Classifying WLAN transmissions into harmful and harmless
* Preventing transmissions that pose a security threat to the enterprise network
* Locating participating devices for physical remediation

Download now »

White Paper

Bringing the Edge to the Data Center

Effectively address data protection challenges, implementing solutions that help store and protect business–critical data while cutting costs and improving efficiency and reliability.

Download now »

Sign up to receive InfoWorld Resource Alerts

Subscribe to the Developer World Newsletter

Receive a weekly roundup about the art and science of software development.

©1994-2009 Infoworld, Inc.