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

Posted on 2008-11-18
Last Modified: 2013-12-08
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
Question by:dearvinit
    1 Comment

    Accepted Solution

    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));

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
    The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now