document.activeElement in IE

document.activeElement in IE

sajupauledayansajupauledayan Posts: 2Questions: 1Answers: 0

Hi,
Just wondering in renderer.pageButton, the document.activeElement can cause problems in IE(when using frames). Is there any solution/workaround for this?

thanks in advance.
Edayan

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin
    Answer ✓

    Hi Edayan,

    Ah, good old IE... DataTables handles this for the filtering input element, so it should also do so for the paging control. I've just committed a change which does this by putting the code in a try / catch block. Not ideal for accessibility, but then, neither are frames.

    The nightly it building with the fix just now.

    Allan

  • sajupauledayansajupauledayan Posts: 2Questions: 1Answers: 0
    edited June 2014

    Thanks Allan,

    Is there any way in which we could restore the accessibility too in IE. ('document.documentElement.activeElement' works on IE- but not is there any other side effects for this).

    Thanks
    Edayan

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin

    Looks like it doesn't work in other browsers... Perhaps you could try var el = document.documentElement.activeElement || document.activeElement; in the code and see if that works for you?

    How are you maintaining accessibility while using frames?

    Allan

This discussion has been closed.