What steps will reproduce the problem?
1. hello.html:
<html>
<head>
<meta name="description" content="Hello world demo written in Brython
www.brython.info">
<meta name="keywords" content="Python,Brython">
<meta name="author" content="Pierre Quentel">
<meta charset="iso-8859-1">
<script src="../brython.js"></script>
</head>
<body onLoad="brython()">
<img src="../brython.png">
<script type="text/python" src="echo.py">
</script>
<p>Your name is : <input id="zone"><button onclick="echo()">clic !</button>
</body>
</html>
2. echo.py:
def echo():
alert("Hello %s !" %doc["zone"].value)
3. load and run in a browser
What is the expected output? What do you see instead?
Popup with alert message
instead fails with:
ReferenceError: echo is not defined
What version of the product are you using? On what operating system?
Brython-20130216-114203
Linux Mint 14
Firefox 18.0.2
Please provide any additional information below.
Was working up to version Brython-20130214-215612, even with a strange error:
erro de sintaxe echo.py:1
the message is localized to portuguese so it may not come from Brython, which
do not localize messages
Original issue reported on code.google.com by ca...@nce.ufrj.br on 17 Feb 2013 at 3:03
Original issue reported on code.google.com by
ca...@nce.ufrj.br
on 17 Feb 2013 at 3:03