i should be more clear: I made it work but I can't pass variables to my external snippet:
this works: ---------------- alert.js contains "alert(variable);" something : function(){ $.getScript('alert.js'); } but this does not work: ------------------------------- alert.js contains "alert(variable);" something : function(variable){ $.getScript('alert.js'); }