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 needed...) you could return it in a
comma separated string, json, xml, etc...
ie
return HttpResponse('{categories: ['drama', 'comedy']}')

Your ajax function needs to be able to parse the response object and be able
to write HTML based off the information it was given.
ie your ajax method needs create something like this:
<ul>drama</ul>
<ul>comedy</ul>
etc...

hope that helps...


On Mon, Sep 13, 2010 at 10:59 AM, mf <[email protected]> wrote:

> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<django-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Guadajuko! Vamos a correr!
 -"Cool! we are going to run!"

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to