index.html
This file
Path
examples/jqueryexample/templates/index.html
21 lines · 580 bytes · HTML
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than de3b6ab point at it.
Fixed a broken sentence about blueprints.Armin Ronacherbefore adoptionde3b6ab
lines 1–21why, one step back1{% extends "layout.html" %}2{% block body %}3<script type=text/javascript>4 $(function() {5 $('a#calculate').bind('click', function() {6 $.getJSON($SCRIPT_ROOT + '/_add_numbers', {7 a: $('input[name="a"]').val(),8 b: $('input[name="b"]').val()9 }, function(data) {10 $("#result").text(data.result);11 });12 return false;13 });14 });15</script>16<h1>jQuery Example</h1>17<p><input type=text size=5 name=a> +18 <input type=text size=5 name=b> =19 <span id=result>?</span>20<p><a href=# id=calculate>calculate server side</a>21{% endblock %}