I was right at the beginning to learn Flask and following the tutorial at http://flask.pocoo.org/docs/patterns/jquery/ . As the author said, it is usually a better idea to have the script in a separate script file.
But I didn't manage to find out how to do this. I just wrote:
<script type=text/javascript src='foo.js'></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>
and in the foo.js I simply copied the content of the first script of the original html code. However when I run the server I got nothing but a blank page, with the log file is "GET /foo.js HTTP/1.1" 304
I'm really a newbie at web programming and couldn't find out what was wrong. Thank you guys !