• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 523
  • Last Modified:

IE8 columns receive focus but cannot be sorted with keypress for jQuery datatables


I am working in Classic ASP and jQuery for a web page that must use IE8.  I have a page with multiple data tables using DataTables-1.9.4.  The page must be 508 compliant. Therefore, when I tab through  the header columns (this works), I must be able to use the enter key to  ascend and descend the column sort order.  I can ascend and descend the sort order with the mouse but, when I use the enter key it loses focus and opens the modal window to create a new record. The focus jumps to the "create a record" button. This only happens on the page with multiple datatables.  It does not happen on the pages with a single datatable.  The code works fine in Firefox and Chrome but,
it has to work in IE8. I have attached the ASP and Javascript files for you to review.
At about line 90 in the InitSaveLoad file I use a work around to not sort on the multiple tables page but, I would prefer not to use it.  Thanks for your help.
  • 2
1 Solution
Michel PlungjanIT ExpertCommented:
I'd love to help you, but eyeballing reams of JS and try to guess how your ASP renders data tables is not an option.

Please create a jsfiddle.net with rendered html or make a test page that shows the issue.

You likely need to make sure the "create a record" button is not a submit button or grab and handle the 13 keycode on your page and cancelBubble or preventDefault on the button
capturetheflagAuthor Commented:
I withdraw this question.
capturetheflagAuthor Commented:
Please withdraw this question.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now