Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1713

ModalWindow JavaScript does not restore tabIndexes correctly on IE 6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.3, 1.4-M2
    • 1.3.5, 1.4-M3
    • wicket-extensions
    • None
    • IE 6, tested on Windows XP and CrossOver on Linux

    Description

      Attached quickstart reproduces the problem before the fix. The problem is that if there are many input elements and some of them have tabindexes set, they are not restored properly when the modal window is closed.

      It seems that when you do getElementsByTagName, IE 6 does not always return them in the same order.

      I fixed this by using a custom javascript object property "hiddenTabIndex" to store the information directly to the manipulated element instead of the array. Object-oriented Javascript programming to save the world

      It would be great if Matej and other javascript / ModalWindow experts could have a look!

      Attachments

        1. modal-window-tabindex-problem.zip
          28 kB
          Timo Heikki Rantalaiho

        Activity

          People

            knopp Matej Knopp
            thrantal Timo Heikki Rantalaiho
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: