Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-27-2010, 02:04 AM   PM User | #1
TomCat
New Coder

 
Join Date: May 2009
Location: USA
Posts: 23
Thanks: 6
Thanked 0 Times in 0 Posts
TomCat is an unknown quantity at this point
Angry Unobtrusive AJAX Star Rating Bar Hanging on Vote

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:
http://expressionengine.com/archived.../76431/#438470

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/scri...ting-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.
TomCat is offline   Reply With Quote
Old 12-28-2011, 04:36 AM   PM User | #2
wildanteak
New to the CF scene

 
Join Date: Dec 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
wildanteak is an unknown quantity at this point
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);
to
xmlhttp.open ('get', '(the location rpc.php)/ rpc.php? j =' + votes + '& q =' + id_num + '& t =' + ip_num + '& c =' + units);

Last edited by wildanteak; 12-28-2011 at 04:41 AM..
wildanteak is offline   Reply With Quote
Reply

Bookmarks

Tags
ajax, hanging, rating, star, unobtrusive

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:48 PM.


Advertisement
Log in to turn off these ads.