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.

Comments

ehudash’s picture

I had the same issue and your suggestion worked for me.
Thank you!

thedavidmeister’s picture

StatusFileSize
new711 bytes

here'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

thedavidmeister’s picture

incidentally, 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".

thedavidmeister’s picture

Version: 6.x-1.8 » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1.79 KB

in 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 :)

japerry’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.