Ian Eure schrieb:
I ran into some problems with the star rating plugin for jQuery 1.1. The
issue is that (at least in Firefox) links with "#foo" get expanded to
include the current page URL. The plugin assumes the href attribute is
a simple "#5", so the rating isn't extracted correctly. I patched it to
split on #, and it works for me.
I couldn't find the email address for the original author, so I've
attached my patch.
------------------------------------------------------------------------
Index: jquery.rating.js
===================================================================
--- jquery.rating.js (revision 5000)
+++ jquery.rating.js (working copy)
@@ -65,7 +65,7 @@
drain();
jQuery.post(url,{
- rating: jQuery(this).find('a')[0].href.slice(1)
+ rating: jQuery(this).find('a')[0].href.split('#')[1]
});
return false;
Have you tried jQuery(this.find('a').attr('href')?
attr() does some extra work to always return the specified value, not
the expanded href.
--
Jörn Zaefferer
http://bassistance.de