bonjour, je voudrais utiliser le livre d'or qu'il y a sur un site, quand je l'utilise il ne marche pas et dans le fichier XLM il y a :
<entrer date="LA DATE" nom="MON NOM" pays="MON PAYS" email="MON MAIL" message="MON MESSAGE" imageurl="undefined" />
(c'est ce qu'il faut pour lire les commentaires)
Mais quand je le test, il n' a rien qui s'affiche. Et quand je regarde le fichier XLM il y a :
<entrer date=\"LA DATE\" nom=\" MON NOM\" pays=\"MON PAYS\" email=\"MON MAIL\" message=\"MON MESSEGE\" imageurl=\"undefined\" />
donc c'est les \ qui pose problème, mais je n'ai pas trouvé comment remédié a sa.
Voici le code qu'il y a pour "envoyer" (code de flash) :
1 2 3 4 5 6 7 8
| on (release) {
if (nom == undefined or pays == undefined or email == undefined or writemess == undefined) {
alert = "Merci de remplire tout les champs";
} else {
_root.ValeurText = "<entrer date=\""+_root.digit.montre+"\" nom=\""+nom+"\" pays=\""+pays+"\" email=\""+email+"\" message=\""+writemess+"\" imageurl=\""+fichier+"\" />";
getURL("info.php", "_self", "POST");
rafraichirXML(current);
} |
voici le code d'affichage de la table messages
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| stop();
detail._visible = false;
addimage._visible = false;
current = 0;
mon_xml = new XML();
mon_xml.onLoad = function() {
rafraichirXML(current);
};
mon_xml.ignoreWhite = true;
mon_xml.load("ddc.xml");
rafraichirXML = function (index) {
for (i=1; i<=5; i++) {
number = mon_xml.childNodes.length-i-index;
if (number>=0) {
this["btn"+i]["nom"+i].text = mon_xml.childNodes[number].attributes.nom;
this["btn"+i]["date"+i].text = mon_xml.childNodes[number].attributes.date;
this["btn"+i]["pays"+i].text = mon_xml.childNodes[number].attributes.pays;
this["btn"+i]["email"+i].text = mon_xml.childNodes[number].attributes.email;
this["btn"+i]["message"+i].text = mon_xml.childNodes[number].attributes.message;
this["btn"+i]["imageurl"+i].text = mon_xml.childNodes[number].attributes.imageurl;
} else {
this["btn"+i]["nom"+i].text = "";
this["btn"+i]["date"+i].text = "";
}
}
};
precedant._visible = false; |
j'espère avoir bien expliquer
et merci d'avance.
Partager