Star ratings with Django and JavaScript | part 2 of 2

  Рет қаралды 7,067

Pyplane

Pyplane

Күн бұрын

Пікірлер: 17
@Pyplane
@Pyplane 4 жыл бұрын
Hi Guys. Here is the link to the source code for this project: github.com/hellopyplane/Star-ratings-with-Django-and-Javascript
@nafiyad1950
@nafiyad1950 4 жыл бұрын
i was waiting for this ;)
@dhruvilshah9098
@dhruvilshah9098 4 жыл бұрын
Awesome sir, really liking your content. One suggestion sir if possible make videos on topics like Comment section How to login with Gmail, Facebook etc.. Sending emails to users etc.. Like small small things which would be very helpful!
@derekkroeker4582
@derekkroeker4582 2 жыл бұрын
*Today's bookmark:* 19:47 Done ✅ One thing I want to solve is that, when you tap 3 stars, and then mouse over 2, it looks like you rate 2, before tapping next.
@derekkroeker4582
@derekkroeker4582 2 жыл бұрын
I figured it out. You need to place *arr.forEach(item=> item.addEventListener('mouseover', (event)=> {...}))* under *arr.forEach(item=> item.addEventListener('click', (event)=> {...}))* I made some variables that knows which is the latest click, so then on *arr.forEach(item=> item.addEventListener('mouseleave', (event) => {...}))* I added inside *handleSelect(latestIdVal)* where *latestIdVal = val* inside *arr.forEach(item=> item.addEventListener('click', (event)=> {...}))* This is almost it, I also made some more changes.
@derekkroeker4582
@derekkroeker4582 2 жыл бұрын
Maybe you just need to add a *'mouseleave'* if a button has been clicked, and that might just be it. where *'mouseleave'* would have *handleSelect(latestIdVal)* which equals to *const val = **event.target.id*
@shin-jo2801
@shin-jo2801 Жыл бұрын
finished, thankyoouuu ma mann
@Pyplane
@Pyplane Жыл бұрын
I completly forgot about this tutorial 😅 but glad you liked it 🙌✨
@kibwana
@kibwana 3 жыл бұрын
Consider adding ability to display the image rating instead of hiding images that have already been rated.
@rangabharath4253
@rangabharath4253 4 жыл бұрын
Awesome as always 👍😀
@Pyplane
@Pyplane 4 жыл бұрын
Thanks Ranga! :)
@derekkroeker4582
@derekkroeker4582 2 жыл бұрын
*Today's bookmark:* 5:00.
@aldrinsaurovsarker5159
@aldrinsaurovsarker5159 4 жыл бұрын
Please I got a problem. when I try to rate something it always says 'something went wrong'. So I opened developer tools and got this error: jquery.min.js:4 POST 127.0.0.1:8000/rate/ 500 (Internal Server Error) What should I do?
@derekkroeker4582
@derekkroeker4582 2 жыл бұрын
*Today's bookmark:* 13:00
@derekkroeker4582
@derekkroeker4582 2 жыл бұрын
*Today's bookmark:* 0:20.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Django To Do List App With User Registration & Login
2:12:03
Dennis Ivy
Рет қаралды 343 М.
Django barcode generator | How to create barcodes in Django
15:42
Django live search | live search using django and javascript
20:07
Django forms with Ajax | How to use ajax with django
34:30
Pyplane
Рет қаралды 40 М.
Review and Rating in Django (Product Detail Review)
17:02
Coding Stuff
Рет қаралды 15 М.