I am trying to load a script within a function that depends on a variable of that function. Basically, the code is like this
head.js("somescript.js", function() {
var dependentVar = //stuff;
//insert script here which depends on dependentVar
});
Is this possible or anyone know how I can do this ? I need to do this because dependentVar contains C# code ?