Quick Search searchObject.on is not a function
Hello, I'm using Keen Multi Demo Bootstrap Admin Dashboard theme v3.0.6 (demo1) and when I try to use the JS API for KTSearch it fails with:
jQuery.Deferred exception: searchObject.on is not a function TypeError: searchObject.on is not a function
The relevant JS in the page that is failing is:
....
// Initialize search handler
searchObject = new KTSearch(element);
// Search handler
searchObject.on("kt.search.process", processs); //here it fails
.... Replies (1)
Hi,
Please make sure that all required core JS scripts are included and you run the code on the document ready event when all dependacy core js is loaded and available:
// On document ready
KTUtil.onDOMContentLoaded(function() {
// your code goes here
}); Regards.