SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist jimday1982's Avatar
    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Access Denied?! WHY?!

    I've put together some javascript to open a file from a cdrom in a new browser window, but when I select these drives - A, C, D, E, I get a javascript error "Access Denied". The rest of the drive letters work fine! I totally do not understand why I am getting this error. If you'd like to see it or the code, it's at http://www.dmgdesign.org/test.htm Thank you for your help!
    Jimmy Day
    Senior Systems Analyst
    Piedmont Healthcare Corporation

  2. #2
    SitePoint Guru SteveO's Avatar
    Join Date
    Jan 2003
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is no way for javascript to access a users drives. That would be a massive security hole where a malicious script could trash your computer!

    I think it may be possible with an applet if the user agrees to let it happen.

  3. #3
    SitePoint Evangelist jimday1982's Avatar
    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, good point. There has to be some way to be able to do this though...anyone have any ideas?
    Jimmy Day
    Senior Systems Analyst
    Piedmont Healthcare Corporation

  4. #4
    SitePoint Enthusiast
    Join Date
    Jan 2003
    Location
    Lying on the floor in a cold and darkened room
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe this is what you are looking for

    http://javascript.internet.com/misce...e-browser.html
    " I will ascend into heaven, I will exalt my throne above the stars of God: I will sit also upon the mount of the congregation, in the sides of the north...I will ascend above the heights of the clouds; I will be like the most High. "-Isaiha 14:14-15

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2003
    Location
    Lying on the floor in a cold and darkened room
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [sarcasm] you're welcom[/sarcasm]
    " I will ascend into heaven, I will exalt my throne above the stars of God: I will sit also upon the mount of the congregation, in the sides of the north...I will ascend above the heights of the clouds; I will be like the most High. "-Isaiha 14:14-15


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •