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

Modal window won't show in internet explorer document mode 8

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC5.1
    • Fix Version/s: 1.5-RC6
    • Component/s: wicket
    • Labels:
    • Environment:
      Internet Explorer <=8

      Description

      Plain modal window won't show after revision 1135146, WICKET-3782 Notifications before and after DOM node replacement (...) using Internet Explorer 9 in document mode quirks, 7 and 8. Works in document mode 9, Opera 11.11, Chrome 13.0.782.32 beta-m, Firefox 3.6.18 and 5.0

      Seems like the lines:
      var newElement = Wicket.$(element.id);
      Wicket.Event.publish('/dom/node/added', newElement);
      the 2nd time they run, element.id = "", which makes Wicket.$ (document.getElementById("")) crash, and an "ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: [object Error]" is logged to the Wicket ajax debug window.

      Quick workaround: Somewhere in your code, include the following script:
      <script type="text/javascript">
      oldFu = Wicket.$;

      Wicket.$ = function(arg) {
      if (arg == null || typeof(arg) == "undefined" || arg == "")

      { return null; }

      return oldFu(arg);
      }
      </script>

      Where the difference to the original $ function is the arg=="" check

        Attachments

        1. mowi.zip
          2 kB
          Sodasmile

          Issue Links

            Activity

              People

              • Assignee:
                mgrigorov Martin Tzvetanov Grigorov
                Reporter:
                sodasmile Sodasmile
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: