Je reçois l'erreur de syntaxe suivante à partir Firebug:SyntaxError:) manquant après la liste des arguments dans Firebug
SyntaxError: missing) after argument list
$.ajax({ //create an ajax request to load_page.php
type: "POST",
url: "display.php",
data:{faculties:faculty},
dataType: "json", //expect json to be returned
success: function(response)
{
$.each(response,function(i,item)
{
$("table tbody").append("<tr><td>"+response[i].code+"</td>"+"<td>"+response[i].title"</td>"+"<td>"+response[i].lecturer"</td"+"<td>"+response[i].description"</td></tr>");
// The line above is giving me the
// syntax error , i cant figure out what's wrong
});
}
});
C'est l'objet JSON étant passé par le script PHP $data[]=array("code"=>$code,"title"=>$title,"lecturer"=>$lecturer,"description"=>$description);
I J'ai passé 1 heure à déboguer mais je ne trouve pas l'erreur de syntaxe. Pouvez-vous m'aider?