Tuesday, March 5, 2013

Re: How to pass a value from a Django View to a JQuery Slider bar.

Well, I definitly can't just throw a variable into the Javascript using the {{ }} tags. I tried it and it didn't work. I'm sure Shawn Milochik is correct about consuming the view with AJAX, however that is going to take sometime to learn and explore, as I am novice at this. It seems there should be an easy way for something so simple, I can pass a variable from a view to a template, but not from a view to a javascript file.

--
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+unsubscribe@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.
 
 

No comments:

Post a Comment