Wednesday, August 29, 2018

Re: What would be the best way to implement a slider bar with django?

you can use post request using ajax to send the data to the server and when you reload the page the data can be read from the server.

For more info go to this link
https://ruddra.com/2015/09/17/sample-ajax-get-post-request-in-django/

On Wednesday, August 29, 2018 at 12:30:39 AM UTC+5:30, Geoffrey wrote:
Hello,

I'm a complete noob with django and web development in general, but I'm trying to figure out how one would go about implementing widgets on my website such a slider bars that can make use of the data stored in the django databases. For example, if my database stores a bunch of values, I might want to extract the minimum and maximum values and create a slider bar with those values as the min and max.The user would select a value using the slider and then the value would need to be saved to be used on other pages. I've gotten a slider bar widget to work using jQuery code I found online, but I'm not sure how I would connect this to the data being stored within the django framework or if that would even be the right strategy. Any tips you could give me would be extremely helpful!


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c739d4d3-de57-402a-be67-78cd1ac58036%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment