Buttonset and applet error
|Reported by:||floepi||Owned by:|
when using a Java applet and buttonset I get an "has no public field or method named htmlFor" error which is very similar to this one
I fixed the error by adding in line 199 of the jquery.ui.button.js a LABEL prefix. Otherwise the buttonset tries to access the applet and throws an type Error. I think it has to do with the expandos or something.
this.buttonElement = this.element.parents().last()
.find( "label[for=" + this.element.attr("id") + "]" );
The jquery core contains some logic to prevent this problem in line 995 of 1.4.2
"embed": true, "object": true, "applet": true
but I am not sure why this is not working for the buttonset.
Hope that helps.
Change History (3)
comment:1 Changed 6 years ago by scottgonzalez
- Component changed from ui.core to ui.button
- Milestone changed from TBD to 1.9
- Resolution set to fixed
- Status changed from new to closed