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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -