Answer by cocco for Retrieve Value from XML through javascript
Here is a FULLY working code for the json waywhich stores the answers into an array and prints them at the end.shuffle functioncaches the questionsstores the answersadds and removes the unnecessary...
View ArticleAnswer by shyam for Retrieve Value from XML through javascript
You should consider changing your xml structure to a more manageable one or use JSON as has been suggested. But, since I had time to kill function displayQn(xml, qnIdx) { var prefix = 'q'+ qnIdx;...
View ArticleAnswer by cocco for Retrieve Value from XML through javascript
So the xml is properly structured this way.in the html i added the Fisher Yates Shuffle function as it's an exam and so it returns a more real number number vs just length*Math.random();n contains the...
View ArticleRetrieve Value from XML through javascript
I have a XML with 3 questions 4 options each and answer.I would like to have one question to be selected in random and display it in the html div tag. Please help in doing this.I;m getting the object...
View Article
More Pages to Explore .....