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

Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'widget' #299

Closed
danielkoch opened this issue Apr 23, 2013 · 3 comments

Comments

@danielkoch
Copy link

I have a problem with selectmenu in combination with the jQuery UI Button component.

I prepared a Demo:
http://jsfiddle.net/danielkoch/zRFSr/

This Demo will NOT work (JS error: Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'widget'), until you change the name attribute from one form element (buttongroup or select).

F.e.:
Change the name attribute from the select element from name="q" to name="q-other-name"

Demo: http://jsfiddle.net/danielkoch/zRFSr/4/

And the two components will work together. The problem is, that the logic of the form also changes. I need to have the same name attribute on both elements.

@fnagel
Copy link
Owner

fnagel commented Apr 23, 2013

I'm not able to reproduce the problem in latest FF:
http://fiddle.jshell.net/danielkoch/zRFSr/show/light/
I guess your "fix" by changing name attribute is just a lucky coincidence.

Anyway, you are including jQuery UI mutliple times which could cause the
problems.
Please use one of my prepared jsFiddles, see #61

Please note the is a new,m built from scratch version, see #140

@fnagel
Copy link
Owner

fnagel commented May 29, 2013

Any feedback on this issue?

@fnagel
Copy link
Owner

fnagel commented Sep 7, 2013

Closed as no feedback was given.

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

No branches or pull requests

2 participants