|Home > Guides > Tag Developers Guide > Struts Tags > UI Tags > Themes and Templates > ajax theme|
See also: Ajax tags
AJAX (as a technology) uses a browser-side scripting component that varies between browers (and sometimes versions). To hide those differences from the developer, we utilize the dojo toolkit (http://www.dojotoolkit.org). Several browsers are supported by dojo, and any UI's created with the ajax theme should act the same way for supported browsers. The supported browsers are:
The wrapping technique utilized by the ajax theme is much like xhtml theme, but the
controlheader.ftl is a wee bit different.
The header provides for AJAX Client Side Validation by checking if the
validate attribute is set to true. If it is, a validation request is made on each
onblur event for a HTML Struts Tags. Some people don't like the
onblur behavior; they would rather a more advanced timer (say, 200ms) be kicked off after every keystroke. You can override this template and provide that type of behavior if you would like.
Three ajax_xhtml templates of special interest are
In addition to these templates, be familiar with the ajax event system provided by the framework and Dojo.