pushpa
pushpa

Reputation: 573

Ajax star rating problem

I am implementing ajax star rating plugin which is given in the bakery article here is link . I followed the steps given in the article but only the stars are getting displayed but we can't vote it and also mouse over messages are also not getting displayed. I have included

$javascript->link('jquery-1.3.2.min.js'); $javascript->link('/rating/js/rating_jquery_min.js'); in my layout file (default.ctp) and have added the following code in my ctp file

$this->element('rating', array('plugin' => 'rating', 'model' => 'Product', 'id' => 148)); here m applying the rating for product model, id is hard coded which is existing id for given product. how can i resolve this? Through firebug i found the following error: $ is not defined ratingInit() in rating_prototype.js (line 34) ()index (line 31) [Break On This Error] $(element + '_' + i).observe('mouseover', function(e) {

Thanks Pushpa

Upvotes: 0

Views: 466

Answers (1)

Spudley
Spudley

Reputation: 168755

Use Firebug (or similar) to see what file the browser is trying to load. Compare it with the actual file name and location of the image, and you'll probably see what the issue is.

My guess is it's likely to be a path issue - maybe you forgot to add the leading slash to the image filename, or something like that. But without seeing your code, that's just a guess.

Upvotes: 1

Related Questions