eddysilvamendes / jquery-star-rating-plugin

Automatically exported from code.google.com/p/jquery-star-rating-plugin
0 stars 0 forks source link

Callback handlers not reacting #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new page, including the rating plugin
2. Initialize the rating plugin like this:

$(".star").rating({
    callback: function(value, link) {
        // Wert setzen
        console.log("callback");
    },
  focus: function(value, link) {
    console.log("focus");
  },
    blur: function(value, data) {
        console.log("blur");
    }
});

What is the expected output? What do you see instead?

I expect that the specified callback handlers are called.

Instead, none of them is called.

Solution: if I comment out the default initialization of the plugin at the
end of jquery.rating.js, it works fine

What version of the plugin/jQuery are you using?
PLUGIN VERSION: 3.10
JQUERY VERSION: 1.3.2

On what browser(s) or operating system?
BROWSER(S): FF3

Please provide a link to where the problem can be observed:
URL:

Feel free to provide any additional information below.

Original issue reported on code.google.com by maneate...@gmail.com on 27 Mar 2009 at 3:24

GoogleCodeExporter commented 8 years ago
You must use a selector other than ".star"

Original comment by diego.a...@gmail.com on 27 Mar 2009 at 3:36

GoogleCodeExporter commented 8 years ago
Work fine whn you remove default initialization

Original comment by sahilkha...@gmail.com on 5 May 2014 at 1:03

GoogleCodeExporter commented 8 years ago
Don't use class "star". That's reserved for the plugin.
Use something else, then the plugin will NOT start automatically.

Like this:
http://jsfiddle.net/xYSGe/

Original comment by diego.a...@gmail.com on 6 May 2014 at 8:49