Sha256: 3e2cff2d50d2eaeb7192917d0f020e28d750de30efadcb68d05b4dc63bce2665

Contents?: true

Size: 1.19 KB

Versions: 813

Compression:

Stored size: 1.19 KB

Contents

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <title>Javascript Example</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>    
    <script src="prototype.js" type="text/javascript"></script>
  </head>

  <body>
    <h1>Fetching object from server</h1>
    <div id="list">
      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) {
            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...') }
        });
    }
    new PeriodicalExecuter(pollJSON, 1);
    -->
    </script>
  </body>
</html>

Version data entries

813 entries across 721 versions & 81 rubygems

Version Path
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/json-1.8.3/data/index.html
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/data/index.html
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/json-1.8.3/data/index.html
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/json-1.8.3/data/index.html
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/json-1.8.3/data/index.html
classiccms-0.7.5 vendor/bundle/gems/json-1.7.3/data/index.html
classiccms-0.7.4 vendor/bundle/gems/json-1.7.3/data/index.html
classiccms-0.7.3 vendor/bundle/gems/json-1.7.3/data/index.html
vagrant-cloudstack-1.2.0 vendor/bundle/gems/json-1.8.3/data/index.html
solidus_backend-1.0.0.pre3 vendor/bundle/gems/json-1.8.3/data/index.html
solidus_backend-1.0.0.pre2 vendor/bundle/gems/json-1.8.3/data/index.html
solidus_backend-1.0.0.pre vendor/bundle/gems/json-1.8.3/data/index.html
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/data/index.html
json-1.8.3 data/index.html
vagrant-cloudstack-1.1.0 vendor/bundle/gems/json-1.8.2/data/index.html
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/json-1.8.2/data/index.html
scout-5.9.10.pre vendor/json_pure/data/index.html
json_pure-1.8.2 data/index.html
json-1.8.2 data/index.html
scout-5.9.8 vendor/json_pure/data/index.html