• Post Reply Bookmark Topic Watch Topic
  • New Topic

open local machine file (c:\\test.xls) in window.open()?  RSS feed

 
vipin jain
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

how can i open local machine file (c:\\test.xls) in window.open()?

Any help would be appreciated.....
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"window.open()" looks like JavaScript. If so, that's not possible due to security restrictions (unless the HTML page containing that script code has been loaded using the "file:" protocol).
 
vipin jain
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Ulf Dittmer

thanks for replay .....i am using file protocol ,but not getting any success........
please if you have any working code link please send me............
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is a browser setting. Only way around it is to tell the user to put your page in a secure zone or upload the file to the serer and open it.

Eric
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!