Addressed issue #1134

This commit is contained in:
Jeffrey D 2014-07-29 20:42:28 -05:00
parent f6618c7638
commit 3c48bf8935
11 changed files with 52 additions and 52 deletions

View file

@ -1,6 +1,6 @@
{% extends "layout.html" %}
{% block body %}
<script type=text/javascript>
<script type="text/javascript">
$(function() {
var submit_form = function(e) {
$.getJSON($SCRIPT_ROOT + '/_add_numbers', {
@ -26,8 +26,8 @@
</script>
<h1>jQuery Example</h1>
<p>
<input type=text size=5 name=a> +
<input type=text size=5 name=b> =
<span id=result>?</span>
<p><a href=# id=calculate>calculate server side</a>
<input type="text" size="5" name="a"> +
<input type="text" size="5" name="b"> =
<span id="result">?</span>
<p><a href=# id="calculate">calculate server side</a>
{% endblock %}

View file

@ -1,8 +1,8 @@
<!doctype html>
<title>jQuery Example</title>
<script type=text/javascript
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type=text/javascript>
<script type="text/javascript">
var $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
</script>
{% block body %}{% endblock %}