sgzwiz / brython

Automatically exported from code.google.com/p/brython
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Regression: src from script tag not working anymore on release 20130216 #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Thanks for the report, it is fixed on the latest version

Original comment by pierre.q...@gmail.com on 17 Feb 2013 at 8:41