Sites Web : [11289] Ajax without coding in SPIP - SPIP commits - by tech-nova

Publié le lundi 21 avril 2008

⇒ http://my.opera.com/tech-nova/blog/

Un site qui recense les astuces et évolutions des possibilités de SPIP.

[11289] Ajax without coding in SPIP

Mars 2008, Par tech-nova



includes the template and ajaxifies all it’s links.

By default, the javascript variable « ajaxbloc_selecteur » is used. It transforms into ajax call each link that corresponds to the jquery selector ’.pagination a,a.ajax’.

An ajax call refreshes the template’s result by restauring it’s #ENV, plus some parameters in the url.
When a refresh occurs, the bloc’s opacity is changed to 50% and it’s class to ’loading’ (this div is automatically created)
The loaded part is cached on the browser with javascript. It also can be preloaded by adding the class ’preload’ to the corresponding links.

That’s all !

(src : http://thread.gmane.org/gmane.comp.web.spip.devel/46569)

→ Lire la suite sur le site d’origine…


Revenir en haut