Bonjour,
Je suis en train de faire un formulaire en ajax SPIP et j'ai cette erreur :
jQuery._ACBajax is not a function
http://20.local/prive/javascript/ajaxCallback.js
Line 46
Dans le squelette principal, j'ai :
<div class="ajax">
[(#INCLURE{fond=formulaires/recherche_par_mots,env,ajax})]
</div>
Dans formulaires/recherche_par_mots.html j'ai
#CACHE{0}
[(#ENV{mots}|print_r{1})]
<form action="#SELF" method="get" id="frmrecherchemot" class="searchfrm">
<div>
[(#SELF|parametre_url{id_groupe,''}|parametre_url{mots,''}|form_hidden)]
<BOUCLE_Tagshidden(MOTS){id_mot IN #ENV{mots}}>
<input type="hidden" name="mots[]" value="#ID_MOT" />
</BOUCLE_Tagshidden>
<label for="recherchemot" title="<:soyezcreateurs:recherche_title:>"><:soyezcreateurs:recherche_motclef_label:></label>
<select id="recherchemot" name="id_groupe" class="searchfield" onchange="if ( (this.value != '') [&& (this.value != (#ENV{id_mot})) ]) return this.submit;" title="[<:soyezcreateurs:recherche_motclef_label|attribut_html:> : (#TITRE|attribut_html)]">
[(#ENV{id_groupe}|non)<option value="">Groupe</option>]
<BOUCLE_RechercheMot(GROUPES_MOTS){par num titre, titre}{titre==^[^_]}>
<option value="#ID_GROUPE"[ (#ID_GROUPE|=={#ENV{id_groupe}}|?{'selected="selected"'})]>[(#TITRE|supprimer_tags)]</option>
</BOUCLE_RechercheMot>
</select>
<B_MotsDuGroupe>
<select id="recherchemot" name="mots[]" class="searchfield" onchange="if ( (this.value != '') [&& (this.value != (#ENV{id_mot})) ]) return this.submit;" title="[<:soyezcreateurs:recherche_motclef_label|attribut_html:> : (#TITRE|attribut_html)]">
<option value="">Mot</option>
<BOUCLE_MotsDuGroupe(MOTS){id_groupe}{par titre}>
[<option value="(#ID_MOT)">[ (#TITRE|supprimer_tags)]</option>]
</BOUCLE_MotsDuGroupe>
</select>
</B_MotsDuGroupe>
<input type="submit" id="sendsearchmc" class="okfield form_submit" title="<:soyezcreateurs:recherche_title_ok:>" value="<:pass_ok:>" />
</div>
</form>
<div id="postDetailInfos" class="clearfix">
<B_Tags><p class="postDetailTags"><BOUCLE_Tags(MOTS){id_mot IN #ENV{mots}}{" et "}><a href="[(#VAL{&mots%5B%5D=#ID_MOT}|str_replace{'',#SELF})]" class="ajax">#TITRE</a></BOUCLE_Tags></p></B_Tags>
</div><!-- #postDetailInfos -->
Quand je poste, j'ai le grisé ajax, avec FireBug, je vois que :
http://20.local/?page=parmots&var_ajax=form&page=parmots&id_groupe=1
est demandée et obtenue en intégralité (pas juste la partie qui sera modifiée, mais la page complète).
Et puis j'ai l'erreur javascript.
-- RealET