Earthwebnews.com   Earthweb  
Images Events Jobs Premium Services Media Kit Network Map E-mail Offers Vendor Solutions Webcasts
   sections:
Search EarthWeb Network

internet.commerce
Be a Commerce Partner
Corporate Gifts
Compare Prices
GPS
Online Shopping
Promotional Items
Logo Design
Free Business Cards
KVM Switches
Auto Insurance Quote
Logo Design
Find Software
Televisions
Hurricane Shutters
Car Donations

Download these IBM resources today!


Webcast: Hacking 101--The Top 10 Attacks in Web Applications
Learn about the three most common web application attacks, including how they occur and what can be done to prevent them.

eKit: Web Application Security
Discover how IBM Rational AppScan Standard Edition can help you detect vulnerabilities in your Web applications. The new Web Application Security eKit provides you with valuable resources, including whitepapers, demos, and additional information on the benefits of testing your Web applications.

Tutorial: Create Secure Java Applications Productively
This is the first in a two-part tutorial series creating secure Java-based Web applications using Rational Application Developer, Data Studio and Rational AppScan.

eKit: Web 2.0 Developer
Take advantage of open, flexible Web 2.0 technologies, like social software and mash-ups. The IBM Web 2.0 Developer eKit has been updated with the latest best practices & technologies from IBM.
Related Articles
Google Finds New Search Answers
Coming Soon: The AJAX-based OS
Commentary
Sean Michael KernerWho Needs IPv6?
By Sean Michael Kerner
With no killer app and little in the way of ROI, IPv6 is a tough sell for American enterprises.
Special Reports
Down Yahoo's Transition Road

[ more ]
Hot Topics
Return of The Browser Wars
A Patent Battle on eBay Territory
SaaS in The Market
Ads And Their Influence
FREE Tech Newsletters

Silverlight 2 App & Walkthrough: Leverage Silverlight 2 with SQL Server and XML. Learn how to utilize both a database & XML for your Silverlight 2 application.

Developer News
May 19, 2006
Google Cleans Ajax for Java
By Andy Patrizio

You'll be hard-pressed to find a programmer who thinks programming in JavaScript is easy, or for that matter likes doing it. But it's a necessary evil for many programmers to learn JavaScript, especially with the advent of Ajax (define) and hot applications that use it, like Google Maps and Gmail.

So leave it to Google, which made Ajax a hit, to provide developers with a simpler way to create Ajax applications. The Google Web Toolkit (GWT) released this week is a framework that converts a standard Java application into Ajax that will work in all browsers.

"Programming in JavaScript is a real nuisance," said Bret Taylor, product manager for Google's developer program. "Depending on the scale of app you're creating, you quickly realize that a scripting language that's implemented differently in each Web browser is not an ideal environment in which to work."

By way of example, it took Google, which has a sizable share of JavaScript programmers, more than a month to get Google Maps working properly in Apple's Safari browser, even though it worked just fine in Internet Explorer and Firefox, said Taylor.

GWT works with any standard Java IDE (define) to convert a full-blown Java application to JavaScript, while paring down the application and removing classes and functions not allowed in the more restricted browser environment. JavaScript applications, for instance, don't have access to the computer's file system, while Java does.

In converting the application, GWT makes sure that it will work with the major Web browsers, all of which implement JavaScript and XML differently from each other. It's this incompatibility across browsers that's the major headache for writing JavaScript applications and a major benefit of GWT.

By working with popular Java IDEs, like Eclipse, IntelliJ, JProfiler, or JUnit, developers have their full Java programming environment in front of them to test and debug the application. There are no real JavaScript IDEs for things like syntax and code checking. GWT comes with a set of UI components, called Widgets, to construct the UI elements in an Ajax application.

The main benefit, then, of GWT is being able to produce Ajax applications that support all browsers quickly and writing it in a professional Java IDE. "The benefit of having all those platform and browser quirks covered in a single point of entry that you run your app through is extremely powerful," said Taylor.

A lot of Java developers don't know JavaScript, so GWT will be a real help in building Ajax applications, said Dick Wall, principal software engineer for New Energy Associates, a division of Siemens. Wall is also a member of the Java Posse and the group has been discussing GWT a lot on its Podcasts from Sun's JavaOne conference this week.

"What's exciting is you don't need to know [JavaScript] any more," he said. "It's basically like writing an AWT Java app and all of the translations to JavaScript are handled for you. It's exciting because it removes a lot of the considerations that you normally have when trying to do an Ajax Web UI."

Wall said many people look to Google as an Ajax community leader because of its success with Maps, Calendar and Gmail, so anything they do will warrant a lot of attention and hopefully encourage more Ajax development.

GWT still needs some fixing, Taylor said, first and foremost on the list being native Mac OS X support for development. Opera support could be tuned up and there needs to be better support for drag and drop development, all of which will come in future versions, he said.

Tools:
Add news.earthweb.com to your favorites
Add news.earthweb.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed

Developer News Archives


Current Headlines
Breaking News
Will Consumers Drown in a CPU Deluge?
Canadian Fiddler Looks to eBay for Quick Payday
TV Writers Turn to Web in Strike's Wake

Business
Court Gives Viacom Access to YouTube Views
Stocks End Mixed on Job Losses
Dell Finds a Way to Continue XP Sales

Developer
Free VMware Server 2.0 Now Release Candidate
Linux Player Xandros Grabs Storied Rival Linspire
Hey Enterprise: Here Comes the 3G iPhone

E-Commerce
Google Launches Affiliate Network
Rhapsody Bets DRM-Free Downloads Can Foil iTunes
Merchants Cope With PCI Compliance

Enterprise
Greenplum Sees BI as Sweet Market
Autonomy 'Discovers' Virtualization
HP Targets Telecoms' Customer Data Needs

Government
Lawmakers Ask FCC to Nix Free Internet Plan
'Net Neutrality Groups Form New Front
FCC Seeks Comment on Free Internet Plan

Hardware
AMD Up, HP Down in the Numbers Game
Beware the Coming of the Mac
Is Pillar Too Late to the Storage Party?

Networking
What's Next for IPv6 in the U.S.?
Dell Enables Rapid Blade Provisioning
Wi-Fi for Mobile Gets a Certified Voice

Mobility
Mobile Phone Users: It's All About Text Appeal
Lawmakers Ask FCC to Nix Free Internet Plan
Wi-Fi for Mobile Gets a Certified Voice

Search
Powerset Purchase to Boost Microsoft Search?
Google, Yahoo to Make Flash Searchable
Yahoo Lobbies for Investor Confidence

Security
Beware the Coming of the Mac
Lessons From McAfee's S.P.A.M. Experiment
XP's 'Last Day' Less Final Than Gates'

Software
Free VMware Server 2.0 Now Release Candidate
PowerPoint Is Only a Starting Point
Dell Finds a Way to Continue XP Sales

Storage
Cheap Storage Can Still Add Up
Is Pillar Too Late to the Storage Party?
Fear Factor Holds Back Hosted Archiving

Web Content
Court Gives Viacom Access to YouTube Views
Low-Income Americans Slipping on Broadband
Yahoo Lobbies for Investor Confidence

Wireless
Apple's iPhone SDK Off to The Races
Sales Data, New Challengers Don't Bode Well For Moto
iPhone Grabs Market Share, But Not Yet in The Enterprise

xSP
IDC: Microsoft's Yahoo Deal Could be a Big Hit
Ballmer Fills in 'Software-Plus-Services' Plan
Report: Enterprise Search Will Top $1 Billion by 2010

EarthWeb is a division of Jupitermedia Corporation.


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES