Problems using jquery.knob dynamicly -
i dynamicly load js - files:
$(document).ready(function () { $.when( $.getscript("./setup/js/jquery.knob.js"), $.deferred(function (deferred) { $(deferred.resolve); }) ).done(function () { $(function ($) { $(".knob").knob({}); }); }); });
in source error
"object [object object] has no method 'knob' "
when load sources inside page using works fine, have wrap whole page js-file
no other error messages in console, no security-related error messages
(update) when copy/paste complete knob-source .js works, of course not preferred solution
Comments
Post a Comment