Archive for March, 2010

You may be benefiting from AJAX already. Many existing Java based frameworks already have some level of AJAX interactions and new frameworks and component libraries are being developed to provide better AJAX support. I won’t list all the Java frameworks that use AJAX here, out of fear of missing someone, but you can find a good list at www.ajaxpatterns.org/Java_Ajax_Frameworks. If you have not …

AJAX requests should use an HTTP GET request when retrieving data where the data will not change for a given request URL. An HTTP POST should be used when state is updated on the server. This is in line with HTTP idempotency recommendations and is highly recommended for a consistent web application architecture.

Security Issues about AJAX

 on March 29, 2010

JavaScript is in plain view to the user with by selecting view source of the page. JavaScript can not access the local file-system without the user’s permission. An AJAX interaction can only be made with the servers-side component from which the page was loaded. A proxy pattern could be used for AJAX interactions with external services. You need to be careful not to …

Just call the abort() method on the request.

No. Or not yet. It is the part of the DOM Level 3 Load and Saves Specification proposal.

AJAX Debugging Methods

 on March 26, 2010

There are not that many tools out there that will support both client-side and server-side debugging. I am certain this will change as AJAX applications proliferate. I currently do my client-side and server-side debugging separately. Below is some information on the client-side debuggers on some of the commonly used browsers. Firefox/Mozilla/Netscape – They have a built in debugger Venkman which can be helpful …

See http://ajax.schwarz-interactive.de/ for a free AJAX implementation for the .NET Framework.

It’s not possible to set any session variables directly from java-script as it is purely a client side technology. You can use AJAX though to asynchronous.

How Can AJAX Work for JAVA?

 on March 23, 2010

Absolutely, Java is a great fit for AJAX! You can use Java Enterprise Edition servers to generate AJAX client pages and to serve incoming AJAX requests, manage server side state for AJAX clients, and connect AJAX clients to your enterprise resources. The JavaServer Faces component model is a great fit for defining and using AJAX components.