error

Fires when an AJAX request for content fails.

Example - subscribing to the error event during initialization

<span id="target" title="Tooltip content">
  Some content
</span>

<script>
  $(document).ready(function() {
    $("#target").kendoTooltip({
      iframe: false,
      content: {
        url: "https://demos.telerik.com/kendo-ui/content/web/tooltip/ajax/ajaxContent3.html"
      },
      width: 220,
      height: 280,
      error: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
        console.log("error");
      }
    });
  });
</script>

Example - subscribing to the error event after initialization

<span id="target" title="Tooltip content">
  Some content
</span>

<script>
  $(document).ready(function() {
    var tooltip = $("#target").kendoTooltip({
      iframe: false,
      content: {
        url: "https://demos.telerik.com/kendo-ui/content/web/tooltip/ajax/ajaxContent3.html"
      },
      width: 220,
      height: 280
    }).data("kendoTooltip");

    tooltip.bind("error", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
      console.log("error");
    });
  });
</script>

Event Data

e.xhr jqXHR

The XHR request object as returned by jQuery.ajax.

e.status String

The status of the request as returned by jQuery.ajax.

In this article