Questions tagged [raty]

Raty is a plugin for JQuery that displays interactive star-ratings.

Raty is a plugin for JQuery that can be used to display star-rating controls. Its icons and hints can be customized.

The Raty plugin is 7K in size (minified), and licensed under the MIT license.

Usage and download:

102 questions
8
votes
5 answers

How to use font Awesome instead of images in jquery rating stars

I am using jquery.raty.min.js in order to show star rating ,In js method I have option to change the display start image like starOff:"/images/star_none.png", starOn:"/images/star_full.png" But here i want to use font Awesome classes like
Shabarinath Volam
  • 789
  • 5
  • 19
  • 48
6
votes
1 answer

How to apply raty plugin to new generated divs?

I have a page with raty divs. With the classic code $('.raty').raty({...}); the plugin works perfectly on these existing divs. But when I load new raty divs thanks to an ajax function, new divs are "not transformed into stars". Could you please…
Jeremy
  • 73
  • 4
4
votes
0 answers

Why is my raty stars not working/loading/appearing in Heroku although it works perfectly fine on development?

I tried all the solution I can found here like precompiling locally, changed jquery.raty.js to jquery.raty.js.erb and others but it doesn't worked for me. I placed the star-half.png, star-off.png, and star-on.png in app/assets/images while the…
Jeramae Bohol
  • 185
  • 2
  • 14
3
votes
1 answer

Raty Star rating in Google map infowindow

I have added marker on google map with some search results. var infowindow = new google.maps.InfoWindow(); var marker, i; for (i = 0; i < locations.length; i++) { var contentString="";var image_path1=""; contentString += '
shruti
  • 780
  • 9
  • 25
3
votes
1 answer

Using Jquery Raty in Rails 4 and showing average of star rating

i have a Rails app in which I am using jquery Raty plugin i have included Raty in gemfile gem 'jquery-raty-rails', github: 'bmc/jquery-raty-rails' and in the application.js i have included //= require jquery.raty //= require jquery.raty.min and i…
user4965201
  • 973
  • 1
  • 11
  • 25
3
votes
2 answers

jQuery Raty and AngularJS

I'm trying to use jQuery Raty plugin with AngularJS. No success yet. What I need is something like:
  • {{obj.rating}}

    {{obj.someText}}

User
  • 31,811
  • 40
  • 131
  • 232
3
votes
1 answer

How to name each jQuery Raty hidden input element differently?

I'm using jQuery Raty plugin to enable star rating system on my website. I've a set of 4 ratable questions(can be 5 too) which I display dynamically using a loop. Hence to display the stars I'm using div id as follows:
LittleLebowski
  • 7,691
  • 13
  • 47
  • 72
3
votes
1 answer

$(this) in javascript

I'm having a problem with using this in js. I have a function that uses this like this: var refreshRequesterStar = function() { $(".rating").raty({ score: function() { return $(this).attr('data-rating'); }, readOnly: function() {…
thd
  • 2,380
  • 1
  • 25
  • 33
2
votes
0 answers

Uncaught TypeError: $(...).raty is not a function

I got this error in the view whhen I call Raty Uncaught TypeError: $(...).raty is not a function Chrome Console Screen I think I fail to load the js file or there is some sort of conflict? I put the copy/paste raty code…
user13825492
2
votes
1 answer

Raty jQuery plugin not working Rails 5

I'm new to RoR and I'm having issues displaying the Raty plugin on my app. Also, I've noticed that another Js function has stopped working since I've added Raty so I believe there's a conflict between them? Raty correspondent files have been added:…
catch22
  • 1,564
  • 1
  • 18
  • 41
2
votes
1 answer

Want to store rate while add/create new product

I'm working on one application where I have to add rate a product while I'm adding(creating) it. Right now I have used RatyRate but it is not storing the rates while I create/add product first time. Is there any configuration to achieve this in…
Hiren Bhalani
  • 848
  • 9
  • 17
2
votes
1 answer

JQuery raty not working when the columns of JQuery datatable collapses

I am using JQuery raty inside JQuery datatable. It works fine when the browser is at its full width. While testing the responsiveness as the columns of the datatable is collpsed, the stars of raty disappears. How do I fix this? HTML:
2
votes
1 answer

raty rating score not properly displayed

I use the raty plugin to display rating stars on multiple items. I initialise the rating score over a data attribute like then I run over the classes and I initiate raty as it…
deroccha
  • 1,181
  • 4
  • 22
  • 41
2
votes
3 answers

jQuery Raty set score inside click event

I'm trying to use this rating plugin but I was unable to set the new score on click. I'm making an ajax request on click event and get new calculated score. I wanted to set the new score inside the click event. What is the right way to do it?
HasanG
  • 12,734
  • 29
  • 100
  • 154
2
votes
1 answer

Rails Issue with nested_form gem and jquery

I have a nested form and using nested_form gem by ryan bates in which i am using raty stars in the field, the form is given as <%= f.fields_for :round_questions do |question| %> <%= question.label :question %> <%= question.text_field…
user4965201
  • 973
  • 1
  • 11
  • 25
1
2 3 4 5 6 7