Chris McCormick schrieb:
> On Tue, Aug 18, 2009 at 07:40:00AM -0700, Ian McDowall wrote:
>> On Aug 18, 8:53 am, Thomas Guettler <h...@tbz-pariv.de> wrote:
>>> Hi,
>>>
>>> this is offtopic: How can you draw lines in a (django) web application?
>>>
>>> I think you need to use flash or java to do it. I googled for it, but found 
>>> only beta
>>> quality projects.
>>>
>>> Has anyone experience with this?
>> Depends on what type of line.  It is technically possible to use SVG.
>> You can embed an SVG image in HTML and then draw lines (or circles
>> etc.) in it. The SVG is just XMl and Django's templating works fine
>> for that.  There are some technical catches about the type of the
>> document and namespaces but I can provide a worked example. The
>> drawback is that not all browsers support SVG well. This appears to
>> work well in recent versions of Firefox but not well in IE.
> 
> Even better is the <canvas> element and it has good coverage on recent 
> browsers
> with the help of explorercanvas <http://code.google.com/p/explorercanvas/> for
> Internet Explorer, although the drawing must be done dynamically with
> javascript.  <http://code.google.com/p/flot/> is an example of a library which
> uses the <canvas> element to draw graphs.

Thank you very much. I thought you can't do it with JS. I will try this.

  Thomas

-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to