- Moderator
- 386
I have the Instant Search plugin running on a 3.1 site. The problem I'm running into is all of my views pages from custom plugins cause the following javascript error with the instant search:
Uncaught TypeError: undefined is not a function
on Line:
var autocomplete = $("#small-searchterms").kendoAutoComplete(
My guess was that my plugin needed to reference the keno javascript libraries in Seven Spikes core. So I added this to my view page:
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/kendo.all.min.js");
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/kendo.public.min.js"); Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/adminAnimatedCollapse.js");
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/animatedcollapse.js"); Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/SevenSpikesExtensions.js");
Its loading those libraries however, it didn't fix the error, so I'm at a loss at this point.
Any ideas?
Uncaught TypeError: undefined is not a function
on Line:
var autocomplete = $("#small-searchterms").kendoAutoComplete(
My guess was that my plugin needed to reference the keno javascript libraries in Seven Spikes core. So I added this to my view page:
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/kendo.all.min.js");
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/kendo.public.min.js"); Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/adminAnimatedCollapse.js");
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/animatedcollapse.js"); Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/SevenSpikesExtensions.js");
Its loading those libraries however, it didn't fix the error, so I'm at a loss at this point.
Any ideas?
Hi final_thrill,
can you please make sure that the JQuery library is included before the kendo scripts?
Regards,
Hristian Dimov
Nop-Templates.com
Hristian Dimov
Nop-Templates.com