Sha256: 4b625e470b541c88dfce2a683545f436c5e67b2828bc2f996ee5965b2191027e
Contents?: true
Size: 883 Bytes
Versions: 53
Compression:
Stored size: 883 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
53 entries across 53 versions & 4 rubygems