update: Using jsfiddle, an image from the internet rather than locally, it works, but still not on my machine, even with the image url from the net. Here's the working jsfiddle:
https://jsfiddle.net/tjmoswf4/
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/59cadd4c-5f9a-4370-9fc0-f0536d7d8ce9%40googlegroups.com.
I'm not running a local server, no. But according to the brython page, it should work if you include the cdn, which I have. Also, other python code works, like i can write values and expressions etc to the document with document.write, and print to the console. So the only functionality that isn't working atm is loading an image, that and I don't yet know how to add eventlisteners.
--
On Thursday, 14 January 2016 14:01:24 UTC, kiko (on pybonacci) wrote:2016-01-14 14:54 GMT+01:00 Thomas Brewster <scagin...@hotmail.com>:update: Using jsfiddle, an image from the internet rather than locally, it works, but still not on my machine, even with the image url from the net. Here's the working jsfiddle:
https://jsfiddle.net/tjmoswf4/Are you running a local server for the ajax requests?--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/59cadd4c-5f9a-4370-9fc0-f0536d7d8ce9%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/419b4493-ffde-4f08-b78e-864d57e8b9aa%40googlegroups.com.
Ah, okay, I see. well, I managed to get it to work intermittently:however, it only works when I get there after coming from the main page. Also, when i reload the browser, the image doesn't appear. I repat, it's only working when i go to: http://csg.eu5.org/ and then retype the url to the one above. But when i reload the page the image doesn't load again. Thanks for your help btw.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/8cae7f83-9f0f-40e2-9adb-8972c8aaf4fb%40googlegroups.com.