IE8: be more verbose if ajax refresh fails
------------------------------------------

                 Key: WICKET-2454
                 URL: https://issues.apache.org/jira/browse/WICKET-2454
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.4.1
         Environment: Internet explorer, all versions
            Reporter: Ilja Pavkovic


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);
}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to