Issue 224: Add error information to onPostinit()
Status:  Verified
Owner:
Closed:  Sep 2011
Project Member Reported by moo...@wwwendt.de, Sep 4, 2011
Bug report from `ken`
  https://groups.google.com/d/topic/dynatree/lb3FDSXhZ4Q/discussion
-------------
I would like to test for the failure of the Ajax call in initAjax. I
first tried this:

$("#tree").dynatree({
            initAjax: {url: "/getAllNamespaces.app",
                success: function(node) {
                    console.log("initAjax.success... ");
                 },
                error: function(node, XMLHttpRequest, textStatus,
errorThrown) {
                    console.log("initAjax.error... ");
                },
            },
...etc

This results in the message:

Uncaught TypeError: Object Dynatree 'tree' has no method 'logError'
jquery.dynatree.js:2227

When I look at that line of dynatree code I see:

if( ajaxOpts.success ){
this.logError("initAjax: success callback is ignored; use
onPostInit instead.");
}

And similar code for error.

So I understand that I should use onPostInit instead of success and
error.

Question 1: Where is logError defined?
Question 2: How do I get useful information within my implementation
of onPostInit about the failure?

I'm interested in the information available to the normal error method
such as textStatus and errorThrown. 
Sep 4, 2011
Project Member #1 moo...@wwwendt.de
Fixed #1: using logWarning instead of logError
Status: Accepted
Labels: Milestone-Release1.2
Sep 4, 2011
Project Member #2 moo...@wwwendt.de
Fixed with r525, r526
Sep 4, 2011
Project Member #3 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Fixed
Jul 17, 2012
Project Member #4 moo...@wwwendt.de
considered verified
Jul 17, 2012
Project Member #5 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Verified