IE7 on windows vista leaves a blank window open, while opening a likn to document.

We are planning for enterprise wide migration from WinXP with IE6 to Win Vista with IE7 (7.0.6001.18000) and facing problems while opening a document link (MS Office Documents) from our intranet application. Once the link is clicked, it opens a new page with a dialog box with options Open, Save and cancel. And if I click Open, it opens the word/ excel document in a seprate window and leaves a blank window open.
I know, there is already a post with same issue on EE forum but I have tried the solutions (tweaking the folder options and checking the target "_blank") mentioned in that but no luck.
Please help !
Vinit Tyagi
Who is Participating?
dearvinitConnect With a Mentor Author Commented:
I was using the following function to open the documents link.
function OpenDocument(durl)
 {, "_blank", "location=0,titlebar=0,menubar=1,resizable=1,left=5, top=5,width=" + (screen.availWidth-20) +",height=" + (screen.availHeight-100));
and I have replaced the target from _blank to _top for MS Office documents and its working (i.e opening the documents properly in new window, without leaving a blank page open). The resultant function is like ...

function OpenDocument(durl) {
      var ulen = durl.length;
      var extn = durl.substring(ulen-4, ulen); // extracting the extension
      extn = extn.toLowerCase();
      var word = new RegExp("do"); // for .doc, .dot, .docx, .dotx
      var xcel =  new RegExp("xl"); // for .xls, .xlsx, .xlt, .xltx
      var ppt =  new RegExp("ppt"); // for .ppt and .pptx
if (word.test(extn) || xcel.test(extn) || ppt.test(extn)) //if attachment is an MS office document.
{, "_top", "location=0,titlebar=0,menubar=1,resizable=1,left=5, top=5,width=" + (screen.availWidth-20) +",height=" + (screen.availHeight-100));      
{, "_blank", "location=0,titlebar=0,menubar=1,resizable=1,left=5, top=5,width=" + (screen.availWidth-20) +",height=" + (screen.availHeight-100));
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.