Django dropdown filter with ajax

Submitted 3 years, 9 months ago
Ticket #51
Views 689
Language/Framework Python
Priority High
Status Closed

I have this dropdown that filter the year of a documents it is working fine but i want to use ajax so that it will not refresh my entire page. I try to watch tutorials but i cant implement it to my project. 

Submitted on Jul 27, 20
add a comment

1 Answer

Verified

Hi,

Where do you want to use Ajax. Can you elaborate your requirement?

Do you want to filter out the data from django via AJAX or do you want to filter out the data in the front end?

Let say, If you filter that has to filter out from Django view then you can call GET API in your javascript and returned the respective data. In case iof you want to filter in front end, then you have to get all the data upfront first then apply the filter on top of that. Is it makes sense?

Submitted 3 years, 9 months ago

I want to filter out data from django without refreshing the entire page.

- janice10sombillo 3 years, 9 months ago

i understand you filtered out data without page refresh. But my question is , do you want to fetch the data from backend as a AJAX request. or whatever the data available in html table that has to filter out using ajax(based on your requirement I could tell you the right option for that and i can check the resources also.

- scott 3 years, 9 months ago

@Janice10sombillo if you are not responding at the earliest to the techion, then we will not allow you to raise the HIGH/URGENT ticket in future. If the issue is resolved then kindly close the ticket.

- Vengat 3 years, 9 months ago

we are closing the ticket from our end. As you are not updating any status on this request.

- Vengat 3 years, 8 months ago


Latest Blogs