View Single Post
Old 01-11-2013, 11:51 PM   PM User | #15
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,168
Thanks: 59
Thanked 3,993 Times in 3,962 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
I think Felgall missed the end of his answer.

Shouldn't it be:
Code:
var loadJS = function(nm) {
  var s = document.createElement('script');
  s.type='text/javascript';
  s.src=nm;
  document.getElementsByTagName('body')[0].appendChild(s);
}

var drives = "BDEFGHIJKLMNOPQRSTUVWXYZ";
for ( var d = 0; d < drives.length; ++d )
{
    var driveletter = drives[d];
    loadJS("file:///" + driveletter + ":/drive.js");
    i++;
}
or similar???

But I still think that's not the best way, given that this is for Windows only, MSIE only.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote