Friday, November 25th, 2005
Apache Velocity: Speed up your Ajax
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 :)












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