In my HTML file I have the following code at the end:
<script type="text/javascript">
function voteUp(userID,userName,channelID,messageID,voteUp,voteDown)
{
$.get("_vote/vote_ajax.php?userID="+userID+"&userName="+userName+"&channelID="+channelID+"&messageID="+messageID+"&voteUp="+voteUp+"&voteDown="+voteDown, function(response){
// alert("Data: " + data + "\nStatus: " + status);
alert(response);
});
}
</script>
But I have error when I load the HTML page:
XML Parsing Error: not well-formed Location: http://localhost/ajaxChat/ Line Number 626, Column 55: $.get("_vote/vote_ajax.php?userID="+userID+"&userName="+userName+"&channelID="+channelID+"&messageID="+messageID+"&voteUp="+voteUp+"&voteDown="+voteDown, function(response){ -------------------------------------------------------------^
If I use only one parameter, the HTML page is loading properly:
<script type="text/javascript">
function voteUp(userID,userName,channelID,messageID,voteUp,voteDown)
{
$.get("_vote/vote_ajax.php?userID="+userID, function(response){
// alert("Data: " + data + "\nStatus: " + status);
alert(response);
});
}
</script>