I noticed when using ctools dependent that Internet explorer didn't work with a dependent fieldset triggered by a radio button. When clicking a radio button nothing changed, but after a click that blurs the radio the dependent field worked. After some investigation it seemed IE doesn't respect the jQuery change function: http://stackoverflow.com/questions/208471/getting-jquery-to-recognise-ch....
So I changed the change functions into a click function in dependent.js.
Maybe this helps anybody else, and could be implemented in dependent.js.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | ie-doesnt-respect-change-1140014-4.patch | 1.79 KB | thedavidmeister |
| #2 | ie-doesnt-respect-change-1140014-2.patch | 711 bytes | thedavidmeister |
Comments
Comment #1
ehudash commentedI had the same issue and your suggestion worked for me.
Thank you!
Comment #2
thedavidmeister commentedhere's another reference for the problem:
http://stackoverflow.com/questions/208471/getting-jquery-to-recognise-ch...
patch for suggested changes attached, rolled against 6.x-1.x-dev
Comment #3
thedavidmeister commentedincidentally, although IE now does seem to be detecting the event correctly with that patch, i'm experiencing far from expected behaviour. Basically, clicking radio buttons seems to randomly display/hide what it is supposed to and the page sometimes loads with the incorrect form elements displayed.
this "needs work".
Comment #4
thedavidmeister commentedin the patch i provided earlier, I only replaced the string 'change' with 'click'. I needed to also replace the two instances of the jQuery methods change() with click().
patch attached for what I'm using now and i've tested as working in both IE8 and firefox :)
Comment #5
japerryDrupal 7 is no longer supported, closing.