Can't loop XML parse with JQuery

nrfxftnjyxtli

New Member
I am trying to extract text from XML in a such way:
[text] [choice in text] [text continues] [another text] [another choice] [another text continues]I've managed to do this partially, so it extracts the first paragraph and the choices for the first paragraph, but it doesn't extract the choices for the second paragraph, no idea why. (In the example the choices are the same for the first and second paragraph). Furthermore I'm using AJAX to post the index of the selected choice to php and to mysql, but I don't have any idea how I could separate the choices. (Like: first choice-->1; second choice-->3; etc.)My code is:\[code\]function parseXml(xml){var myArray = [];var i = 0;//Megkeress
 
Back
Top