View Single Post
Old 01-17-2013, 08:38 PM   PM User | #27
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,203
Thanks: 59
Thanked 3,996 Times in 3,965 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
Oh, sigh. I should have tried this myself.

The problem is DROP DEAD obvious!

I did:
Code:
<script>
    var drives = "BDEFGHIJKLMNOPQRSTUVWXYZ";
    ...
        var driveletter = drives[d];
But MSIE--even MSIE 9--doesn't SUPPORT treating a string as an array of character!

You just have to change that line to
Code:
        var driveletter = drives.charAt(d);
and presto! It all works.

Again, though, you must have your security settings in MSIE such that "unsafe ActiveX controls" can be used. At the very least, the setting must be "prompt", not "disable". If you feel comfortable doing it, you could use "enable".
__________________
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 online now   Reply With Quote