简体   繁体   中英

window.open(“\\\\localhost\\”); not working on win7(x64) ie8

window.open("\\\\\\\\localhost\\\\"); is not working on ie8 on 64bit win7. ie says "make sure the path or internet address is correct". it's working on same verson of ie8 on 32 bit. any idea? or any different way to access a path like \\\\localhost\\ using internet explorer?

i'm trying to open \\\\localhost like a file path. when you write \\\\localhost on ie, it opens "Network > localhost"

In error details, ie says "Message: Access is denied.".

It may related to security settings of windows. Any idea which settings of windows might cause that?

Localhost requires a port number. Open the target site in the browser and get the map path. It should follow the syntax below;

                         port #/View Name   /.cshtml file

window.open(' http://localhost :****/SomeViewName/Some.cshtmlfile', '_blank' + ***.start);

If you are running httpd in your host http://localhost/ ... must work. Otherwise, better use file:///... to access local file. I don't know how come \\\\localhost\\... did work for your 32bit machine. Maybe, IE 8 script engine did interpret that as a simple file path, and then tried to access the path from local SMB server. Did you enabled windows file sharing as you did in 32bit machine? Anyway I do not believe that URL scheme is compatible with other browsers than IE.

当我将网站添加到ie上的“受信任的网站”时,此方法就起作用了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM