IE7 and window.location.assign to local file
We have a web app where we need to at some point use javascript to redirect the user to a local html file. That is where the html file (for example) exists in c:\folder
The javascript used to do this is simply window.location.assign(url) here is the actual code snippet:
"Error Invalid procedure call or argument"
I have tried changing out the file:/// part of the URL with "file:///c:/projects/play_local.htm"; but then it just gives an Access Denied error and I have tried using window.location.href and window.location.replace but nothing works.
What changed in IE 7 to stop allowing this? Is there a security setting that can be changed to allow the local file to replace the current window? Keep in mind, this is an internal web application and would only affect employees at our company.
Is there another solution for this that anyone has come across? I have searched a lot on google and other sites and not found anything to fix it.
Thank you in advance.
Tyler

