Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form containing select list always posts a value of 1 when used in firefox. #7

Closed
ecnalyr opened this issue Oct 25, 2013 · 3 comments
Closed

Comments

@ecnalyr
Copy link

ecnalyr commented Oct 25, 2013

I have a form that uses this plugin to stylize a select list with numbers 1-8. In Chrome, Safari, and Internet Explorer when a user selects an item, the appropriate number is PATCHed to the server. However, every time a form is submitted while a user is using Firefox (Mac, Linux, and Windows) the value that gets submitted is a 1.

Any ideas what could be causing this?

I have a live example, but it takes a couple of steps to get to it:

You can log into my staged app using the following credentials:
username: coach@gmail.com
password: pas5word

The url to the registration page: http://lion.alexander.c66.me/users/sign_in

You can then navigate to: http://lion.alexander.c66.me/user_relations/3
Where you will see a "Skill List" toward the bottom of the page:

screen shot 2013-10-23 at 10 48 43 am

Select a value other than 1 in any of the three fields and select "update" . The page will refresh and you will see a value of 1 if you used Firefox (as mentioned before, all other browsers work as expected).

What's going on here?

@ecnalyr
Copy link
Author

ecnalyr commented Oct 25, 2013

It may be important to note that if I remove the jQuery Bar Rating plugin itself - the select lists load and work as expected (even in Firefox).

@antennaio
Copy link
Owner

I found a bug report that was referring to problems with setting the "selected" attribute on a select list in Firefox/Windows 7.

http://bugs.jquery.com/ticket/11488

Please clone/download the latest version of the plugin. I changed how the option is selected from using attributes to properties. Maybe it will help in your case.

@ecnalyr
Copy link
Author

ecnalyr commented Oct 25, 2013

Awesome, that fixed it.

@ecnalyr ecnalyr closed this as completed Oct 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants