data/index.html in json_pure-1.1.2 vs data/index.html in json_pure-1.1.3

- old
+ new

@@ -8,27 +8,28 @@ </head> <body> <h1>Fetching object from server</h1> <div id="list"> - Switch on Javascript! + Wait...<br/> + <noscript><p>Switch on Javascript!</p></noscript> </div> <script type="text/javascript"> <!-- function pollJSON() { new Ajax.Request('/json', { - method:'get', - onSuccess: function(transport){ + method: 'get', + onSuccess: function(transport) { var response = transport.responseText || "no response text"; response = eval("(" + response + ")"); var text = ""; for (var k in response) { text = text + "<b>" + k + "</b>: " + response[k] + "<br/>" } $("list").update(text); }, - onFailure: function(){ alert('Something went wrong...') } + onFailure: function() { alert('Something went wrong...') } }); } new PeriodicalExecuter(pollJSON, 1); --> </script>