• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

'javascript:FileOpen' pop up windows no longer work in IE7

NathanBWF

Golden Member
<-- Not a Web Developer 🙁

We have an Intranet site, which works fine and well under IE6. However, I've noticed that with IE7, the pop up windows no longer work. You click on the link, and nothing happens (no notifications, errors, nothing). Here is an example of one of the links that do not work:

<a href='javascript:FileOpen("J:/DATA/Drawings/drawing.pdf")'>A</a>

There is also the following script included in the .asp page:

<SCRIPT language="JavaScript">
<!--
function FileOpen(MyLocation)
{
FileWindow = window.open("file:" + MyLocation)
}
if (document.images) {
EditOn = new Image();EditOn****** = 'images/Button_Edit.gif';
EditOver = new Image();EditOver****** = 'images/Button_Edit_Over.gif';
EditDown = new Image();EditDown****** = 'images/Button_Edit_Down.gif';
}

function SwapImage(FieldName, ImageName){
if (document.images)
document.images[FieldName].src = eval(ImageName + '.src');
}
//-->
</SCRIPT>



Anyone familiar with JavaScript that can see what's wrong?

Or would there be a setting somewhere in IE7 that would be preventing them from opening (note: I have the pop up blocker turned off, and no other pop up blockers installed).

TIA...
 
IE7 has had a hard time detecting that I am on a LAN. What zone does it say you are on?
 
I've had the same problem since installing IE7 on my main rig ... I've tweaked, adjusted & re-installed everything I could think of short of rolling back to IE6, but nothing fixed the problem.

Also posted here when it first happened & aside from comments telling me I wasn't the only one with the problem, nobody had a solution aside from uninstalling which I would prefer not to do ... my workaround is using Opera or Firefox instead.
 
Originally posted by: Kappo
IE7 has had a hard time detecting that I am on a LAN. What zone does it say you are on?

"Unknown Zone (Mixed)"

Don't think I've ever seen that one before...
 
Originally posted by: Captante
I've had the same problem since installing IE7 on my main rig ... I've tweaked, adjusted & re-installed everything I could think of short of rolling back to IE6, but nothing fixed the problem.

Also posted here when it first happened & aside from comments telling me I wasn't the only one with the problem, nobody had a solution aside from uninstalling which I would prefer not to do ... my workaround is using Opera or Firefox instead.

Yeah, unfortunately the person who designed this intranet set it up to use Active Directory authentication. If you use any other browser besides IE, it will prompt you to enter your windows username and password for every page on the intranet site that you try to visit. If you use IE, it authenticates you automatically without having to enter in your username and password.
 
Originally posted by: NathanBWF
Yeah, unfortunately the person who designed this intranet set it up to use Active Directory authentication. If you use any other browser besides IE, it will prompt you to enter your windows username and password for every page on the intranet site that you try to visit. If you use IE, it authenticates you automatically without having to enter in your username and password.

To enable windows authentication in Firefox, try:

1. Navigate to the url about:config

2. Locate the following preference names and put as the value the comma separated values of the address roots.

network.automatic-ntlm-auth.trusted-uris
network.negotiate-auth.delegation-uris
network.negotiate-auth.trusted-uris

Your value should look something like this: localhost,server1,server2,serverX
 
Originally posted by: Snapster
Originally posted by: NathanBWF
Yeah, unfortunately the person who designed this intranet set it up to use Active Directory authentication. If you use any other browser besides IE, it will prompt you to enter your windows username and password for every page on the intranet site that you try to visit. If you use IE, it authenticates you automatically without having to enter in your username and password.

To enable windows authentication in Firefox, try:

1. Navigate to the url about:config

2. Locate the following preference names and put as the value the comma separated values of the address roots.

network.automatic-ntlm-auth.trusted-uris
network.negotiate-auth.delegation-uris
network.negotiate-auth.trusted-uris

Your value should look something like this: localhost,server1,server2,serverX

I just tried the above, however I do not believe it has changed anything unfortunately. Thanks for the advice though!
 
To fix the javascript, the window.open("file:"+location) needs to changed to window.open("file:///"+location). IE7 handles uri's differently (correctly maybe?). The lack of slashes in your original js is interpreted by IE7 that it should not be looking locally for that file, but on the web server.

Trevor
 
Originally posted by: hellman69
To fix the javascript, the window.open("file:"+location) needs to changed to window.open("file:///"+location). IE7 handles uri's differently (correctly maybe?). The lack of slashes in your original js is interpreted by IE7 that it should not be looking locally for that file, but on the web server.

Trevor

WINNAR!!!!!!

That fixed it, thanks! 😀:beer:
 
Back
Top