I editted my ajax data but it still shows the old version while I am sure I saved it I even reopened the file and checked the location. It's like it is cached.
This is the actual code:
function setMessages(roomId, username, message){
$.ajax({
type: "get",
url: "http://www.sinansamet.nl/chatdistract/ajax/setMessages.php",
data: { roomId:roomId, username:username, message:message },
success: function(html) {
strReturn = html;
}
});
}
But what it sees is
function setMessages(id){
$.ajax({
type: "get",
url: "http://www.sinansamet.nl/chatdistract/ajax/setMessages.php",
data: { id:id },
success: function(html) {
strReturn = html;
}
});
}
Which was the old code.
The error is given in the console as "undefined id"