Where you can Vote and then as you can see the Vote results are currently displayed in simple Text and we need to replace this with Colorful animated progress bars.
Just to be clear, the resulting AJAX based JS Code will will write to an empty DIV for each Poll Answer via:
You put the script in the head which means that the html doesn’t exist yet and therefore has nothing to target. Move the script to the end of the html just before the cloing body tag.
where the poll results are generated in real time via AJAX calling a Php program.
So that is before hand we do not know what the DIV ids will be since they are dynamically generated.
And? Do I owe you something?
I created working example but I don’t want to debug entire logic of your app.
This is a forum and you still have chances to get help from someone else.
No need to be rude.
No, dont mean to be rude. Sorry, if it came across as that!
Just was wondering if by any chance you had the answer as to why that Progress Bar Animation is not working when it is being called via Ajax as it is in our actual program?
I would try to make results div visible before sending AJAX request
Because now it seems like animation finishes faster than results div is actually rendered
helo …
I’d listened wrote, because I also do not understand the scrip , hopefully after listening , I will understand and the more eager to make the website even more advanced .