Posts Tagged ‘AJAX’

Stripes framework and jQuery Autocomplete

December 16th, 2008

I really enjoy jQuery. But finding the right UI widget can be a daunting task.
Autocomplete is one of those widgets.

I decided to share an asynchronous example on how to use the jQuery Autocomplete plugin with Stripes.

Here’s an example output:
Stripes and jQuery Autocomplete example
» Read more: Stripes framework and jQuery Autocomplete

Stripes framework and jQuery: AJAX forms and HTTP Session Validation

October 23rd, 2008

This example was greatly inspired by the Stripes and jQuery AJAX Forms article from Freddy Daoud, but with some nice improvements

Last week I was working on a new Stripes/AJAX example. It involves having a table listing entities, being the last row of the table a form for adding new ones.
The form gets submitted via AJAX, using jQuery, and the response is validated in order to check if the HTTP session is still valid.

If everything is OK, the list is refreshed and a success message appears. On the other hand, if validation errors occur, the list is refreshed and an error message appears.
Also, if the user’s session has expired on the server, an alert is shown to inform the user that his session is invalid, and the page is reloaded so the user can login once more.
» Read more: Stripes framework and jQuery: AJAX forms and HTTP Session Validation

Ajaxian.com 2006 Survey Results

September 23rd, 2006

Ajaxian has published their second annual Ajaxian.com survey.

The first three by categories are:

Most Popular Ajax Frameworks

  1. Prototype – 43%
  2. Script.aculo.us – 33%
  3. Dojo – 19%

Most Popular Ajax Platforms

  1. PHP – 50%
  2. Java – 37%
  3. .NET – 16%

Read the original article here.

Update from Joe Walker’s Blog (with a Java perspective):

Most Popular Java / Ajax Frameworks

  1. DWR – 53%
  2. GWT – 15%
  3. AjaxTags – 7%

Google Web Toolkit initial tutorial

May 31st, 2006

I’ve already commented in a previous post about the Google Web Toolkit (GWT). The Google Web Toolkit was the talk of JavaOne 2006, offering developers a way to create Ajax applications by writing Java and having the toolkit generate the client-side JavaScript, which can call back to Java servlets through an RPC-like call.

Robert Cooper offers an initial tutorial to get you up and running with GWT.

Google Web Toolkit: AJAX applications in Java

May 17th, 2006

Google has released Google Web Toolkit (GWT), a code generation framework that lets you code Ajax apps in pure Java.

Google Web Toolkit (GWT) is a Java development framework that lets you escape the matrix of technologies that make writing AJAX applications so difficult and error prone. With GWT, you can develop and debug AJAX applications in the Java language using the Java development tools of your choice. When you deploy your application to production, the GWT compiler to translates your Java application to browser-compliant JavaScript and HTML.

Here’s the GWT development cycle:

  1. Use your favorite Java IDE to write and debug an application in the Java language, using as many (or as few) GWT libraries as you find useful.
  2. Use GWT’s Java-to-JavaScript compiler to distill your application into a set of JavaScript and HTML files that you can serve with any web server.
  3. Confirm that your application works in each browser that you want to support, which usually takes no additional work.

A widget like tree has methods to manipulate the structure (e.g. addItem()) and event handlers (e.g. addFocusListener). Here’s how a tree is created:

CSS Style Rules

.gwt-Tree { the tree itself }
.gwt-Tree .gwt-TreeItem { a tree item }
.gwt-Tree .gwt-TreeItem-selected { a selected tree item }

Example

public class TreeExample implements EntryPoint {

    public void onModuleLoad() {
        // Create a tree with a few items in it.
        TreeItem root = new TreeItem("root");
        root.addItem("item0");
        root.addItem("item1");
        root.addItem("item2");

        Tree t = new Tree();
        t.addItem(root);

        // Add it to the root panel.
        RootPanel.get().add(t);
    }
}

Another 60 More AJAX Tutorials

May 8th, 2006

Max Kiesler as posted in his site an article with 60 more AJAX tutorials.

These examples and how-to’s represent the best tutorials that I’ve personally used or otherwise had the opportunity to work with out of the overall group. This post is intended for individuals who learn best by example. Most of the listed tutorials come complete with instructions and source code.

Read the 60 More AJAX Tutorials full article.

AJAX, what can the web offer?

May 1st, 2006

Max Kiesler has posted on his site, a listing of 50 different Ajax toolkits and frameworks, and a listing of 30 different AJAX Tutorials.

  1. Round-up of 50 AJAX Toolkits and Frameworks
  2. Round-up of 30 AJAX Tutorials

Of course, the lists are by no means complete, but they do include not only the “big names” but also several of the smaller, lighter libraries the web has to offer.

First Atlas Toolkit official release

April 13th, 2006

Atlas Toolkit The first official release of the ASP.NET Atlas Toolkit is ready!

For controls and templates that make adding client-side functionality to your site incredibly easy see Atlas Control Toolkit.