|Issue 25:||Cancel rating does not submit form via AJAX|
|9 people starred this issue and may be notified of changes.||Back to list|
What steps will reproduce the problem? 1. Create form with star rating plug-in. 2. Set callback on these features to use '$(this.form).ajaxSubmit()' 3. Click on the 'Cancel Rating' button 4. The form is not submitted to the server (most likely because of the jquery selector used should not be $(this.form) for the cancel rating button). What is the expected output? What do you see instead? Form to be submitted via AJAX Form Plugin. What version of the plugin/jQuery are you using? PLUGIN VERSION: 3.12 JQUERY VERSION: 1.32 JQUERY FORM VERSION: 2.25 On what browser(s) or operating system? BROWSER(S): IE, Firefox Please provide a link to where the problem can be observed: URL: (cannot provide) Feel free to provide any additional information below.
May 19, 2009
This appears to be an issue with the data being passed to the callback for the cancel button. The callback is receiving value as an empty string and link as what appears to be the first link that is in the DOM.
Aug 19, 2009
Hs this been fixed? It's a pretty basic bug.
Sep 27, 2009
Anyone have a work around?
Sep 27, 2009
Yes. Create a new action, bind it to the cancel button (when it is created in this plugin) w/the form/value (via context variable). I cannot post the code for it (sorry), but if you know a little bit about jQuery plugins, it should not be too hard. If you have an ajaxSubmit action bound to it, call that (from the new cancel action) with the form. As the plugin sits now, it will post the entire document back to the server, not just the form.
Jan 7, 2010
Apr 30, 2010
I've tested the fix with jquery 1.4.2 and jquery.rating 3.13 and it works as expected. I turned it into a patch, if it helps.
May 20, 2010
Thanks for the patch - it works great. Hopefully they'll fix this in 3.14?
Dec 19, 2011
It looks like the patch downgrades the plugin to 3.12 and doesn't match the 3.13 I downloaded. Line numbers and contents are wrong
Dec 13, 2012
Thanks, Cancel not working as one would expect was driving me insane.I merged it with 3.14 which is almost the same as 3.13.
Feb 23, 2013
(No comment was entered for this change.)
|► Sign in to add a comment|