Skip to content
Myr

index.html

This file

Path

examples/jqueryexample/templates/index.html

21 lines · 580 bytes · HTML

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than b40af3c point at it.

Updated the documentation to show how to set cookies for not yet existing responsesArmin Ronacherbefore adoptionb40af3c

lines 1–21why, one step back
1{% 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 %}