Friday, November 25th, 2005

Apache Velocity: Speed up your Ajax

Category: Articles, Examples, Java

<p>Dirk Rost has started a series of columns on how to build Ajax applications using the Apache Velocity templating language.

The first piece is the ubiquitous Live Search.

Dirk focuses on the server-side piece that make the following Ajax call work:

<input autocomplete="off" id="idMatch" 
name="match" size="30" type="text"> 

<div class="auto_complete" id="match_auto_complete" ></div>

<script type="text/javascript" language="javascript">
    new Ajax.Autocompleter('idMatch','match_auto_complete',
        'MainControl?action=autoComplete');
</script>

It seems to focus on server side Java code rather than Velocity template code at this point, but that will probably change :)

Related Content:

Posted by Dion Almaer at 10:19 am
1 Comment

+++--
3.3 rating from 23 votes

1 Comment »

Comments feed

I did something almost exactly the same on a project where I couldn’t use my normal AJAX methods. I found it to work out really well. Below is my original post on the subject.

http://jgchristopher.blogspot.com/2005/10/on-demand-ajax-and-templates.html

Comment by John Christopher — November 26, 2005

Leave a comment

You must be logged in to post a comment.