index.html
This file
Path
examples/jqueryexample/templates/index.html
21 lines · 580 bytes · HTML
Last changed by
Finished jQuery example documentation.Armin Ronacherbefore adoptiona99e408
History of this fileTake it
Finished jQuery example documentation.Armin Ronacherbefore adoptiona99e408
lines 1–2why, one step back1{% extends "layout.html" %}2{% block body %}Added JSON Support and started working on jQuery docsArmin Ronacherbefore adoption6e2be6a
lines 3–11why, one step back3<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 });Finished jQuery example documentation.Armin Ronacherbefore adoptiona99e408
line 12why, one step back12 return false;Added JSON Support and started working on jQuery docsArmin Ronacherbefore adoption6e2be6a
lines 13–20why, one step back13 });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>Finished jQuery example documentation.Armin Ronacherbefore adoptiona99e408
line 21why, one step back21{% endblock %}