| Issue 224: | Add error information to onPostinit() | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
(No comment was entered for this change.)
Status:
Fixed
Jul 17, 2012
considered verified
Jul 17, 2012
(No comment was entered for this change.)
Status:
Verified
|
Labels: Milestone-Release1.2