On Aug 5, 3:22 pm, Josh <jos.carpente...@yahoo.com> wrote:
> I'm new at Django and am experimenting with JavaScript in templates.
>
> I've put JavaScript from Google Charts in a block and it is displaying the
> chart properly. The onmouseover should display the details of elements in
> the chart, but that isn't working in Django. In a plain html-page it is
> displayed, so I guess it is being blocked by Django and I should enable
> this.

Django doesn't "block" javascript, and is totally agnostic about
javascript FWIW.

> I've tried the {% autoescape on/off %} tag,

Escaping considerations only apply to dynamic content (=> content
inserted by the template system using either a {{ var }} or a {% tag
%}). See the "safe" (IIRC) filter to disable escaping on dynamic
content.

> but that doesn't solve it. How
> can I activate this?

There's nothing to "activate".


> Basically I want no restrictions on these blocks with
> JavaScript.

Basically, unless you inserted your js code (or any other markup)
using a {{ var }} or {% tag %}, there is NO "restrictions on these
blocks with javascript".

Did you at least inspected the *rendered* template to see how what
your HTML and js looks like ?

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