I'm trying to update some string questions and answers in an array from an XML document and i don't know how ? I need Help ! Please how can i do that ? The idea is to easy change the JavaScript document by updating the XML. I hope i made myself understood.Thanks in advance for any little help.
enter code here
var intrebari = new Array();
var question = new Array();
question["intrebare"]= "Deashi Harai este o tehnica de secerare ?";
question["raspuns1"]="Nu, Deashi harai este o tehnica de sold";
question["raspuns2"]="Deashi Harai este o tehnica de secerare din grupa Ashi Waza"
question["raspuns3"]="Nu, Deashi harai este o tehnica de fixare la sol"
question["raspuns4"]="Nu, Deashi Harai nu exista ca si tehnica"
question["raspuns"]="raspuns2";
intrebari.push(question);
enter code here
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<intrebari>
<question>
<intrebare>Deashi Harai este o tehnica de secerare ?</intrebare>
<raspuns1>Nu, Deashi harai este o tehnica de sold</raspuns1>
<raspuns2>Deashi Harai este o tehnica de secerare din grupa Ashi Waza</raspuns2>
<raspuns3>Nu, Deashi harai este o tehnica de fixare la sol</raspuns3>
<raspuns4>Nu, Deashi Harai nu exista ca si tehnica</raspuns4>
<raspuns>raspuns2</raspuns>
</question>
<question>
<intrebare>Uki Goshi este o tehnica de lovire cu cotul ?</intrebare>
<raspuns1>Da, Uki Goshi este o tehnica de lovire cu cotul</raspuns1>
<raspuns2>Nu, Uki Goshi este o tehnica de lovire cu genunchiul</raspuns2>
<raspuns3>Uki goshi este o tehnica de proiectare peste sold</raspuns3>
<raspuns4>Uki goshi este o tehnica de maturare peste sold</raspuns4>
<raspuns>raspuns3</raspuns>
</question>
</intrebari>
No comments:
Post a Comment