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