Welcome | Sign In
LinuxInsider.com
Development

Tooling Around With Ajax

Print Version
E-Mail Article
Reprints
Tooling Around With Ajax

Web 2.0 operations like social networking sites have amplified the popularity of through-the-browser applications relying on Ajax. There are lots of toolkits out there for making life easier for Ajax developers. Security, however, remains a concern.


Social networks are peppering the Internet with Facebook-like interactive features. Ajax (Asynchronous JavaScript and XML) is fast becoming the defacto programming tool for Web developers. But by itself, Ajax is a daunting challenge that requires demanding coding skills.

Ajax toolkits offer Web developers a shortcut method to build in the convenient and useful features that visitors of Web 2.0 sites have come to expect. However, the toolkit concept is nothing new to programming. What's newer is the proliferation of JavaScript-based toolkits to feed the social network phenomenon.

Social media and Web 2.0 allow Web pages to display pop-up windows and other interactive objects without having to refresh the screen. It's now the expected behavior. Without the Ajax toolkits, it would take developers much more time to code and fix errors.

"Ajax and Asynchronous JavaScript are very complex. Ajax toolkits allow me as a developer to do cool things with a couple of quick commands," Evan Keller, director of Internet technology for Luckie & Company, told TechNewsWorld.

Ajax Primer

One major problem with Ajax being used on social networks is the ubiquitousness of the code. Tooling of Ajax has only started to see productivity gains. JavaScript is used by hundreds of millions of Web sites today.

"Ajax is incredible in using the rich user experience better than page-to-page navigation. Ajax caught on over other programming methods because it is so effective in creating the interactive response on the Web," Kevin Hakman, director of product marketing Download Free eBook - The Edge of Success: 9 Building Blocks to Double Your Sales for software developer Aptana, told TechNewsWorld.

The impact of Ajax on the Web can be likened to the innovation FedEx created with its overnight letter service. People started to discover the power of JavaScript, he said.

"It can move around the Web. That's why social networking sites are using it," said Hakman.

Toolkit Expansion

The explosion of social networks is not the only factor pushing the development of Ajax toolkits. New demands for toolkits accompany the growth of Ajax on servers.

"Ajax has now jumped over to the server side. Web developers and server programmers can now use the same language on both ends," Hakman said.

"Finally, the industry is going back to what the developers of Netscape envisioned. The original idea was to use the same thing on both ends. Back then, the industry wasn't ready for it. Now the industry is."

Ajax toolkits are abundant. There are probably a half dozen leading products plus another half dozen behind that, according to Hakman. They can mix and match features, and all of them are open source, accessible and liberally licensed, he noted.

Toolkit Roundup

TechNewsWorld assembled a list of some of the leading Ajax toolkits based on developer recommendations. The list below is not presented in any ranking order and is not representative of any endorsements.

  • Google Web Toolkit 1.4: Considered as a standard, Google Web Toolkit (GWT) simplifies the process of writing high-performance Ajax applications. First, write the front end in the Java programming language. Then GWT compiles the source into highly optimized JavaScript.

    License: Apache 2.0

    Support: Use the search term "gwt support" in Google.

  • jQuery 1.2.3: jQuery is a speedy and concise JavaScript Library that makes it easy to create HTML documents, handle events, perform animations and add Ajax interactions to Web pages.

    License: MIT and GPL

    Support: Online forums, blogs

  • MooTools 1.11: MooTools is a compact, modular, object-oriented JavaScript framework designed for the intermediate to advanced JavaScript developer. Use it to write flexible, cross-browser code.

    License: MIT

    Support: Online community

  • Prototype 1.6: Prototype is fast becoming the toolkit of choice -- it's a JavaScript framework used to ease development of dynamic Web applications.

    License: MIT

    Support: Mailing list and IRC

  • Yahoo User Interface 2.5.0: YUI Library is a set of JavaScript utilities and controls used for building rich interactive Web applications with techniques such as DOM scripting, DHTML and Ajax.

    License: BSD

    Support: Extensive support from Yahoo in forums and well-executed examples

Potential Dangers

The transition of Web pages from traditional HTML code to the more complex features Ajax brings is perhaps changing the definition of what a "site" really is. A so-called Web page is not really a page in the traditional sense anymore.

"You are downloading a program and running it in a Web browser that is supposed to confine what it does. This is leaky and is easy to hack," Brian Chess, founder and chief scientist for Fortify Software, told TechNewsWorld.

Cross site scripting is one of the best-known examples of the security flaws that lurk in the technology upon which social networks often rely. This is a Web 1.0 trick that allows hackers to attack a vulnerability in the Web browser when visitors go to infected Web sites and view objects.

"There is great potential for cross platform attacks. But there is no great defensive mechanism because Ajax developers cannot help secure Web surfers' browsers," Chess explained.

Hacker's Friend

Social networks' heavy reliance on Ajax can encourage hackers to attempt much more targeted attacks through sites like Facebook, according to Chess. For instance, hackers can unleash so-called spear phishing attacks against specific visitors to social networks, and they can more easily map out the network.

Essentially, the bad guys buy Ajax books to learn how to install attack methods such as key loggers throughout a social network.

"Today, Web surfers have a choice in avoiding social networks and their potential security risks. But soon they won't have any choice," Chess warned.


Print Version E-Mail Article Reprints More by Jack M. Germain


More by Jack M. Germain

Microsoft FOSSifies .Net Micro Framework
November 18, 2009
Microsoft has declared its .Net Micro framework open source under the Apace 2.0 license. Not all bits of .Net Micro are covered, however. Its TCP/IP stack has been stripped, as has its cryptography libraries. Rights to the TCP/IP stack aren't Redmond's to give, and the cryptography libraries are used outside of the scope of the .Net Micro framework, according to the company.
New Ubuntu OS Features Create Good Karma
November 13, 2009
Amidst the OS upgrades from Apple and Microsoft over the last few months, the Linux OS Ubuntu got a version bump of its own. Ubuntu 9.10, or Karmic Koala, is well worth the effort to upgrade, and its developers have made the process easier -- if you're using the full-sized desktop/notebook version. The Remix version, intended for netbooks, caused quite a few headaches.
Samsung Chimes In With Bada Mobile OS
November 11, 2009
With Android, iPhone, BlackBerry, WinMo, Symbian, WebOS and plenty other mobile platforms fighting for space, is there room for one more? Samsung believes there is, and it's announced a new open mobile platform called "Bada." The company, which already makes handsets for several existing platforms, says Bada will make app-making easy for developers. The first Bada handset should be out in the first half of 2010.
Don't miss a story -- sign up for our FREE e-mail newsletters and view the latest headlines at a glance.
Tech News Flash [ View Sample ]
E-Commerce Minute [ View Sample ]
ECT News Network Weekly Newsletter [ View Sample ]
Shortcuts
ECT News Network Information
Reader Services
Corporate
ECT News Network