Sha256: d9a41d38c23d43a1b1336212e06beb55831b24e1b1e85639a7f519c8ecdf4f9c

Contents?: true

Size: 878 Bytes

Versions: 15

Compression:

Stored size: 878 Bytes

Contents

<htmL>
<head>
  <title>jQuery - Sample App</title>
  <script type="application/x-javascript" src="/jquery-1.3.2.js"></script>
</head>
<body>
  <div id="ajax-demo">
    <h2>AJAX Calculator</h2>
    <form id="calculator-form" action="#" method="post" onSubmit="return false;">
      <input id="calculator-expression" name="calculator-expression"/>
      <input type="submit" id="calculator-button" value="Compute" />
      <br/><br/>
      <div>Result: <input id="calculator-result" disabled /></div>
    </form>

    <script type="text/javascript" language="javascript">
      $(document).ready(function() {
        $('#calculator-button').click(function() {
          $.post("/compute", $('#calculator-form').serialize(), function(data) {
            $('#calculator-result').val(data);
          });
          return false;
        });
      });
    </script>
  </div>

</body>

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
druid-s-1.0.0 features/sample-app/public/jquery.html
druid-ts-1.2.6 features/sample-app/public/jquery.html
druid-ts-1.2.5 features/sample-app/public/jquery.html
druid-ts-1.2.4 features/sample-app/public/jquery.html
druid-ts-1.2.3 features/sample-app/public/jquery.html
druid-ts-1.2.2 features/sample-app/public/jquery.html
druid-ts-1.2.1 features/sample-app/public/jquery.html
druid-ts-1.2.0 features/sample-app/public/jquery.html
druid-ts-1.1.8 features/sample-app/public/jquery.html
druid-ts-1.1.7 features/sample-app/public/jquery.html
druid-ts-1.1.6 features/sample-app/public/jquery.html
druid-ts-1.1.5 features/sample-app/public/jquery.html
druid-ts-1.1.4 features/sample-app/public/jquery.html
druid-ts-1.1.3 features/sample-app/public/jquery.html
druid-ts-1.1.2 features/sample-app/public/jquery.html