requestStart
Fires before an AJAX request starts. Note that this event is triggered only when an AJAX request is used instead of an iframe
.
Example - subscribing to the requestStart 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,
requestStart: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("request is started");
}
});
});
</script>
Example - subscribing to the requestStart 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("requestStart", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("request is started");
});
});
</script>
Event Data
e.target jQuery
The target element for which the Tooltip is shown.
e.options Object
The request options which will be set to jQuery.ajax or to the iframe
.