Friday, September 10, 2010

Change variable value after a click

I'm working in a django view and I'd like to duplicate the
items_rating value of myview when I click to "see more categories" in
the template. All of this without refreshing the web.

I think that I have to use jquery and Ajax to perform this action but
I don't know how to do it. The examples I read about were about form
submissions and I couldn't find a way to use it.

views.py:

def myview(request):
items_rating = 5
html:

<a href="#">See more categories</a>

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment