Article submitted
-----------------
The article "{ajax} for inclusions" is submitted for publication.
You are invited to review it and to give your opinion
in the forum linked to it. It is available at the address:
http://www.spip.net/ecrire/?exec=articles&id_article=3995
** {ajax} for inclusions **
by Paolo
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 (...)