<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Promet CakePHP Source &#187; bug fixes</title>
	<atom:link href="http://cakephp.prometsupport.com/tag/bug-fixes/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakephp.prometsupport.com</link>
	<description></description>
	<lastBuildDate>Mon, 23 Feb 2009 08:03:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>jQuery star rating problem with brackets []</title>
		<link>http://cakephp.prometsupport.com/2008/jquery-star-rating-problem-with-brackets/</link>
		<comments>http://cakephp.prometsupport.com/2008/jquery-star-rating-problem-with-brackets/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 10:54:23 +0000</pubDate>
		<dc:creator>rachel</dc:creator>
				<category><![CDATA[CakePHP 1.2]]></category>
		<category><![CDATA[Helpers]]></category>
		<category><![CDATA[bug fixes]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[star rating]]></category>

		<guid isPermaLink="false">http://cakephp.prometsupport.com/2008/jquery-star-rating-problem-with-brackets/</guid>
		<description><![CDATA[If you used the star rating plugin of jQuery in cakePHP, you might experienced that the hover effects are not working properly. This is because one of the class name used to identify the buttons uses the radio button name. This will be a problem in cakephp because we use brackets in names. In order [...]]]></description>
			<content:encoded><![CDATA[<p>If you used the <a href="http://plugins.jquery.com/project/MultipleFriendlyStarRating">star rating plugin of jQuery</a> in cakePHP, you might experienced that the hover effects are not working properly. This is because one of the class name used to identify the buttons uses the radio button name. This will be a problem in cakephp because we use brackets in names.</p>
<p><code lang="html"></p>
<input type="radio" name="data[Model][field]" class="star" />
</code></p>
<p>In order to fix that, we need to remove them. Here is quick fix. Open file <code>jquery.rating.js</code>:</p>
<p>from (line 97):<br />
<code lang="javascript"><br />
// grouping:<br />
  var n = this.name;<br />
</code></p>
<p>to:<br />
<code lang="javascript"><br />
// grouping:<br />
  var real_name = this.name;<br />
  var n = real_name.replace(/[^A-Za-z0-9_\-]/g, '-'); // remove unwanted characters<br />
</code></p>
<p>from (line 108):<br />
<code lang="javascript"><br />
$.rating.groups[n].valueElem = $('<br />
<input type="hidden" name="' + n + '" value=""' + (settings.readOnly ? ' disabled="disabled"' : '') + '>');<br />
</code></p>
<p>to:<br />
<code lang="javascript"><br />
$.rating.groups[n].valueElem = $('<br />
<input type="hidden" name="' + real_name + '" value=""' + (settings.readOnly ? ' disabled="disabled"' : '') + '>');</code></p>
<p>I have <a href="http://plugins.jquery.com/node/3365">reported this in the bugtracker</a> and I hope it will be included in the next release.</p>
]]></content:encoded>
			<wfw:commentRss>http://cakephp.prometsupport.com/2008/jquery-star-rating-problem-with-brackets/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
