<img alt="large map" id="large_map" />
<script type="text/python">
from browser import document
doc['large_map'].???
</script>
--
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/b21d89f9-f4fd-4e62-8517-772430b12e2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2016-05-06 18:57 GMT+02:00 Serge <stoo...@gmail.com>:I have an HTML page with a placeholder for a large image which should be loaded only when the rest of a Brython script finishes.
<img alt="large map" id="large_map" />
Selecting the image by id is easy enough, but then how do I go about changing its src option?
I am having no luck with the options collection associated with a SELECT object.
<script type="text/python">
from browser import document
doc['large_map'].???
</script>Hi Serge,See an example here: http://jsfiddle.net/rwq83gpj/When you click the button, after 3 secs it will appear the image.I hope it helps.
Your jsfiddle image still does not show up, however its source was all I needed to make my case work.
Thanks! The select Brython community is a great community!
On Friday, 6 May 2016 19:49:38 UTC+2, kiko (on pybonacci) wrote:
--
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/36d42c29-6f65-4e3d-a6f6-9721c3be2211%40googlegroups.com.
2016-05-06 20:03 GMT+02:00 Serf <stoo...@gmail.com>:
Your jsfiddle image still does not show up, however its source was all I needed to make my case work.
Strange, I've tested again and it is working for me... (after 3 secs).
Nicolas
--
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/96a0e796-7424-9eb9-bf8c-bd04cab73f55%40famillepinault.fr.