Python CGI and Firefox vs IE

dimitri pater dimitri.pater at gmail.com
Wed Sep 7 17:56:53 EDT 2005


On 7 Sep 2005 11:10:00 -0700, Jason <jason.massey at gmail.com> wrote:
> 
> IE...<sigh>


Yeah, I know what you mean. Here's another one that doesn't work in IE, but 
it does work in Firefox:
canvas = pid.PILCanvas()
canvas.drawRect(0,400, 500, 0, fillColor=pid.floralwhite, edgeColor=
pid.maroon )
<snip>
# display stuff
f = StringIO.StringIO()
canvas.save(f, format="png")
# does not work in MSIE, that sucks...
return 'data:image/png,' + urllib.quote(f.getvalue())

these are DATA URIs (
http://www.howtocreate.co.uk/wrongWithIE/?chapter=Data%3A+URIs)
so do I now have to change my code because most people use IE? Probably I 
have to :-(

Have to come up with a workaround, go back to the old <input>. I'm
> about the only one who uses firefox in our facility.
> 
> Thanks for the reply and the link.
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
> 



-- 
All truth passes through three stages. First, it is ridiculed. Second, it is 
violently opposed. Third, it is accepted as being self-evident.
Arthur Schopenhauer 
-----
Please visit dimitri's website: www.serpia.com <http://www.serpia.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050907/58a95b7b/attachment.html>


More information about the Python-list mailing list