you can do that, though not necessary.
Your view needs to return the data necessary for ajax to write INTO the
webpage.
ie on the page you have:
action
adventure
(click for more)
when that user clicks, your view needs to return the "more"...(and really
only the more and what ever info is
What about using request.is_ajax() inside my view?.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
It's definitely a good idea to gain some AJAX experience first, but on
how to integrate it with Django:
You'll have to write a special view to retrieve the additional elements
to be displayed on the page.
That's "how to do it" in general, hope it'll help you a bit
Regards,
Felix
On 10.09.2010
I don't think you can do this with a view and NOT refresh the page.
To get the functionality you want you need to use AJAX (and jquery would
make it easier).
do some research on how to use jquery to manipulate the dom and add HTML
elments to the page live.
There some jquery bits out there
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
5 matches
Mail list logo