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

IE8: be more verbose if ajax refresh fails

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.1
    • 1.4.2, 1.5-M1
    • wicket
    • None
    • Internet explorer, all versions

    Description

      sometimes we write wrong html code, for example

      <link rel="xxx">
      instead of
      <link rel="xxx"/>

      if parts of the page are refreshed via Ajax on IE, the following code is called: wicket-ajax.js

      if (window.ActiveXObject)

      { xmldoc = new ActiveXObject("Microsoft.XMLDOM"); xmldoc.loadXML(text); }

      else {

      if loadXML fails there is no direct feedback, you only get a cryptic error message:
      Wicket.Ajax.Call.failure: Error while parsing response: Object required.

      if would be great if you write some logs in case of load error:

      if(!xmldoc.loadXML(text)) {
      this.failure("error while parsing text: "+text);
      }

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            pavkovic Ilja Pavkovic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified