Problem with Ajax Voting Script

Place for comments, problems, questions, or any issue related to the JavaScript / PHP scripts from this site.
Nike555
Posts: 12

Problem with Ajax Voting Script

Hi all !
On localhost (xampp latest version) this script don't work, on hosting work.
https://coursesweb.net/php-mysql/voting- ... pt-ajax_s2
When i try to vote i got this error:
prntscr.com/97mdy8

But this is not all (i think), when i open this JS file with brackets, brackets found more errors.
prntscr.com/97mew9
prntscr.com/97mf2f

Thanks

Admin Posts: 805
Hello,
I made some modifications in the code of the script. Try download it again and test it.
To make sure you will not get the previous script from browser cache, delete the browser cache or download it with other browser.
If you edit the files with code, use a file editor that can encode the file with UTF-8 without BOM (for example Notepad++).
- If the script not work for you, uncomment the line 92 with this code: alert(reqob.responseText); in the voting.js file, and post here the alert box with the ajax response, and other errors you get.