{% if condition %}
        <script type="text/javascript">
                some_function(params);
        </script>
{% endif %}

Sarfraz ahmad wrote at 23 апреля 2013 13:30:38:


Guys, is it possible to call a javascript function in django templates based on 
an if 
condition.......?????????? What i want to do is that in django templates if a 
given if condition is 
true i want to call a javascript function automatically............

tell me guys if it is possible or not????





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


Reply via email to