[jQuery] Re: jQuery Star Rating Plugin v3.12

2009-10-13 Thread Cell

anyone? please please =[

On Oct 12, 4:22 pm, Cell christianbell1...@googlemail.com wrote:
 Hey guys,

 i want to get rid of the cancel rating button that appears next to
 the 5 stars when enabled. I need to force the users to enter a rating,
 so i need to take the cancel rating button off (makes value = 0).

 I can't find how to change this!

 please help
 thanks


[jQuery] Re: jQuery Star Rating Plugin v3.12

2009-10-13 Thread Regis Sabino
$().ReyX(function() {
$(this).open(Hi man (or woman));
});


I try an little look in the source (about 2 min. : ) ) and from line 314
from 339 find:

/**/

/*
### Default Settings ###
eg.: You can override default control like this:
$.fn.rating.options.cancel = 'Clear';
*/
$.fn.rating.options = { //$.extend($.fn.rating, { options: {
cancel: 'Cancel Rating',   // advisory title for the 'cancel'
link
cancelValue: '',   // value to submit when user click
the 'cancel' link
split: 0,  // split the star into how many
parts?

// Width of star image in case the plugin can't work it out.
This can happen if
// the jQuery.dimensions plugin is not available OR the image is
hidden at installation
starWidth: 16//,

//NB.: These don't need to be pre-defined (can be
undefined/null) so let's save some code!
//half: false, // just a shortcut to control.split =
2
//required: false, // disables the 'cancel' button so
user can only select one of the specified values
//readOnly: false, // disable rating plugin interaction/
values cannot be changed
//focus:function(){},  // executed when stars are focused
//blur: function(){},  // executed when stars are focused
//callback: function(){},  // executed when a star is clicked
 }; //} });

/**/

So, you need define in your page:

$(document).ready(function() {
 $('your star class e.g. .star').rating({required: true});
});


Hope it helps,

$().ReyX(function() {
$(this).close();
});


2009/10/13 Cell christianbell1...@googlemail.com


 anyone? please please =[

 On Oct 12, 4:22 pm, Cell christianbell1...@googlemail.com wrote:
  Hey guys,
 
  i want to get rid of the cancel rating button that appears next to
  the 5 stars when enabled. I need to force the users to enter a rating,
  so i need to take the cancel rating button off (makes value = 0).
 
  I can't find how to change this!
 
  please help
  thanks




-- 
Sabino, Regis S.
ReyX Technology Solutions
Programmer - Web Designer - Full .NET Platform
(55) 11 8545-9314 / (55) 11 2456-7901


[jQuery] Re: jQuery Star Rating Plugin

2009-06-10 Thread Paul Mills

Hi,
The API documentation shows how to select values -
http://www.fyneworks.com/jquery/star-rating/#tab-API
If you leave the value blank then the rating is cancelled.
$([name='star1']).rating('select','')

It looks like you can also use the 'drain' command - but it's not
documented in the API.
$([name='star1']).rating('drain')

Paul


On Jun 9, 7:54 am, karimmta...@gmail.com karimmta...@gmail.com
wrote:
 Hi guys,

 how can I reset the stars without clicking on the cancel button, like
 on any other event on the page? is it possible?

 thank you
 Karim


[jQuery] Re: jQuery Star Rating Plugin Problem

2008-10-10 Thread Diego

Hi Gareth,

I'm the author of the star rating plugin and I have just found this
post. I visited the URL you mentioned but I can't see the star rating
plugin being used - hence I could not reproduce the problem.

Is there somewhere I can see this in action?

Cheers,
Diego A.

On Oct 1, 4:31 pm, GarethMatthews [EMAIL PROTECTED]
wrote:
 I all,

 UsingjQuery1.2.6 and the latest level of theStarRatingplugin
 obtained fromwww.fyneworks.com. Thestarratingworks fine under most
 circumstances, however I can make it break and I am not sure why.

 The page I am using it on is a AJAX page - i.e. part of the page is
 loaded and reloaded dynamically by some javascript. The dynamic part
 of the page contains thestarratings.

 As such, when the XMLHTTP response comes back and I set the innerHTML
 of the dynamic area of the page I then have to make the all important
 call to make the options turn into stars (i.e. $
 ('[EMAIL PROTECTED]').rating();). Again this normally works
 fine. However, if the dynamic area of the page is loaded with the same
 content (I use the dynamic area for switching between pages of content
 - so when I view page 1 it is fine, but then switching to page 2 and
 then back to page 1 triggers the fault) the options have changed to
 stars, but therating(i.e. whichstaris selected) is not shown - so
 all the stars appear grey.

 I get an error in my Firefox Error console when this happens:

 Error: elem.parentNode is null
 Source File:http://www.itakeout.co.uk/js/jquery-1.2.6_030908.js
 Line: 25

 You can see this error for yourself if you go 
 tohttp://www.itakeout.co.uk/select_restaurant.php?search=Portsmouthand
 moving between pages. They look fine on the first view, but going back
 to them theratingdisappears.

 I can't think this could be anything I am doing as the stars work fine
 most of the time. However, I'd really like to get this resolved. From
 the error it looks like either a bug injQueryor something in 
 thestarratingplugin is causingjQueryto mis-behave. Does anyone have
 any ideas? I am pretty new tojQueryand so am not sure exactly what I
 need to do here.

 Cheers,
 Gareth


[jQuery] Re: jQuery Star Rating Plugin Problem

2008-10-07 Thread [EMAIL PROTECTED]

Hi Gareth,

I have a similar problem with the plugin. I've posted about it here :

http://groups.google.com/group/jquery-en/browse_thread/thread/4a12b64ac5139dcc/059e78bffb9a2ba4?lnk=gstq=star+rating#059e78bffb9a2ba4

When the form that contain the stars is submitted by ajax the hover
class of the stars isn't disapplied whith the mouseout event. Same
problem i think, but it doesn't produce any error in the console for
me...

++
b_b