Quel est le problème avec Ajax (jQuery) et Php? Pourquoi mon code ne fonctionne pas?Quel est le problème avec Ajax (jQuery) et Php
code jQuery:
$(document).ready(function(){
$.ajax({
type: "GET",
url: "Tags.php",
dataType: "xml",
success: function(xml) {
alert("success");
}
});
});
code tags.php
<?xml version="1.0" encoding="UTF-8"?>
<tages>
<?php echo "<tag>hello</tag>"; ?>
</tages>
Y avait-il une question ici? –