Voici ma méthode de traitement PHP (cakephp) au cas ou :
if($this->request->is('ajax')){
$this->layout = false;
if(!empty($this->request->data)){
$data = $this->request->data;
}
if(is_string($data)){
$tag_trouve = $this->Article->Tag->find('first',array(
'conditions'=>array('Tag.name'=>$data)
));
if(!empty($tag_trouve'Tag']'name'])){
$tag_trouve = $tag_trouve'Tag']'name'];
}
if(!empty($tag_trouve) && is_string($tag_trouve)){
echo $tag_trouve;
}
}
//echo '<h1>vous êtes en ajax</h1>';
exit();
}