document.activeElement in IE
document.activeElement in IE
sajupauledayan
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
This discussion has been closed.
Answers
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
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
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