JSFiddle

  • Bingo/Housie Random Number Generator

    A random generator that goes with the Bingo/Housie game.

    $(function() {
        var bingo = {
            selectedNumbers: [],
            generateRandom: function() {
                var min = 1;
                var max = 90;
                var random = Math.floor(Math.random() * (max - min ...
  • XML to JSON Conversion #361 is the latest revision

    parse a xml string as a dom object then convert it to json object

    var xml = '<?xml version="1.0" encoding="utf-8"?>' +
     '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' +
                    'xmlns:xsd="http://www.w3.org/2001/XMLSchema" ' +
                    'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' + 
       '<soap:Body> ' +
         '<GetQuote xmlns="http://www.webserviceX.NET/"> ' +
           '<symbol>' + symbol + '</symbol> ' +
         '</GetQuote> ' +
       '</soap:Body> ' +
     '</soap:Envelope>';
    
    
    parser = new DOMParser();
    xmlDoc = parser.parseFromString(xml, "text/xml");
    
    var json = XMLObjectifier.xmlToJSON(xmlDoc);
    
    document.getElementById("result ...</?xml>