הקוד הבא לא מריץ את האלרת המיוחל
PHP:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<title></title>
<script type="text/javascript">
function AddWord()
{
$.getJSON("http://www.quizner.co/PHP-Words/get_words_by_id_json.php?",{"ID":"70"}, translateTe
);
}
function translateTe() {
alert("DS");
}
</script>
</head>
<body>
<button id="sdd" onclick="AddWord();">ddsds</button>
<div id="fd"></div>
</body>
</html>