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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -