On 13:20 Mon 01 Jul     , Christian Erhardt wrote:
> Hey Harjot,
> 
> i can't provide an easy answer to your question. An Ajax enabled search with 
> django is nothing, that one programs in 30 minutes especially not if he has 
> no understanding of query and or ajax.
> 
> I'll try to give you some hints but not a complete plug n play solution. 
> 
> First things first. Jquery is a Javascript framework. One function it 
> provides is to handle ajax requests. In short: Javascript running in the 
> users browser calls the server  and with help of jquery you modify the DOM of 
> the html page. So you don't have to reload the html page for each request. 
> 
> Now django comes to play. Django just handles the request. So you will need a 
> page which will return search results for a query you submitted. If you call 
> a django page it usually returns a html page. For ajax calls you would not 
> work with html. Most pages use json to serialize data. There is a plugin 
> called tasrypie which we use. It provides an ajax endpoint. As i recall it 
> has a built in search function. Maybe you try this first. There are more high 
> sophisticated search engines for django... but i'd give tastypie a try.
> 
> If everything is set up correct you can call an endpoint for your model with 
> a jquery ajax call.
> 
> But this is acomplex task!
> 
> Regards
> 
> -- 
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
> 

If you will follow the advices to learn AJAX and jQuery and how to use
them with Django then you can check if one of those plugins can help
you:
https://www.djangopackages.com/grids/g/auto-complete/

Best regards,
Marcin

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to