View Full Version : Unobtrusive AJAX Star Rating Bar Hanging on Vote

10-27-2010, 03:04 AM
I am using the Unobtrusive AJAX Star Rating Bar script, and whenever I click a start to give a rating, the "working" gif image keeps looping and the rating never gets recorded in the database. A new row is added and the ID is placed in there, but the values are set to 0 and the IP is not recorded.

For an example, click any of the "gold" circles where it says "Rate this character" on the following page: http://www.elderstats.com/character/S1/9

This problem has been pointed out here as well:

Does anyone know what could be causing this problem. It has been reported at the main website, as well, in the first comment: http://masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/P270/

Any ideas would be very much appreciated. This script used to work on my site, and I had customized some of the code and it still worked. However, I don't know what happened but it stopped working properly at some point in the past and has never been the same since. I've spent 4 hours trying to fix it to no avail, so if anyone can help me here I would appreciate it immensely.

Thank you in advance.

12-28-2011, 05:36 AM
place _drawrating.php, rpc.php, db.php, _CONFIG-rating.php at the same place
try to change the code in rating.js
xmlhttp.open ('get', 'rpc.php? j =' + votes + '& q =' + id_num + '& t =' + ip_num + '& c =' + units);
xmlhttp.open ('get', '(the location rpc.php)/ rpc.php? j =' + votes + '& q =' + id_num + '& t =' + ip_num + '& c =' + units);