Re: OT: Drawing lines in the browser

2009-08-19 Thread Thomas Guettler



Chris McCormick schrieb:
> On Tue, Aug 18, 2009 at 07:40:00AM -0700, Ian McDowall wrote:
>> On Aug 18, 8:53 am, Thomas Guettler  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  element and it has good coverage on recent 
> browsers
> with the help of explorercanvas  for
> Internet Explorer, although the drawing must be done dynamically with
> javascript.   is an example of a library which
> uses the  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
-~--~~~~--~~--~--~---



Re: OT: Drawing lines in the browser

2009-08-18 Thread Chris McCormick

On Tue, Aug 18, 2009 at 07:40:00AM -0700, Ian McDowall wrote:
> On Aug 18, 8:53 am, Thomas Guettler  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  element and it has good coverage on recent browsers
with the help of explorercanvas  for
Internet Explorer, although the drawing must be done dynamically with
javascript.   is an example of a library which
uses the  element to draw graphs.

Chris.

---
http://mccormick.cx

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: OT: Drawing lines in the browser

2009-08-18 Thread Ian McDowall



On Aug 18, 8:53 am, Thomas Guettler  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?
>
>   Thomas
>
> --
> Thomas Guettler,http://www.thomas-guettler.de/
> E-Mail: guettli (*) thomas-guettler + de

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.

Ian McDowall

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: OT: Drawing lines in the browser

2009-08-18 Thread Chris Withers

Thomas Guettler 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 why you want to draw lines... If it's for graphs and the 
like, just use matplotlib and generate the graphs on the server as .png 
or .pdf :-)

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: OT: Drawing lines in the browser

2009-08-18 Thread Kenneth Gonsalves

On Tuesday 18 Aug 2009 1:23:08 pm Thomas Guettler wrote:
> 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?

first hit in google gave me this:
http://jsdraw2d.jsfiction.com/
-- 
regards
kg
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



OT: Drawing lines in the browser

2009-08-18 Thread Thomas Guettler

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?

  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
-~--~~~~--~~--~--~---