Article published
-----------------
The article "{ajax} for inclusions" was validated by Committo, Ergo Sum..
** {ajax} for inclusions **
by Paolo on Sunday 25 January 2009
The criterion ajax allows you to have a clickable link which refreshes
just a part of the whole page.
In practice
The idea is to make AJAX easy and to hide its complex workings.
On the page there are links to the same page and clicking on them causes a
change only in a certain zone of the page. For this to be possible:
place the part of the page in question in a separate template
mark the links which call that template with the class ajax, thus: ...
include the template in the main page with: or
#INCLUREfond=mytemplateajaxenv
And that's all!
Just a few additional words of advice:
Always start by testing your template without the ajax criterion.
To avoid any risk of URLs being (...)