I'm writing a short script that loops through an array and loads each of the results found although I'm having some issues with it loading. If I alert my results found in each loop I get the right data but when I attempt to load this data, it fails.
var arrayScripts = new Array (
'http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js',
'scripts/tiny_mce/tiny_mce.js',
'scripts/jquery.cycle.lite.js',
'scripts/javascript.default.js',
'scripts/jquery.default.js'
);
for (var i=0; i < arrayScripts.length; i++) {
scripts.add(arrayScripts[i]);
}
scripts.load();
I hope you can see what I'm doing wrong here. It appears to be my code inside of my loop.