Welcome to Mediachase Community Sign in | Join | Help    
in Search   

how to disable IE msg "webpage you are viewing is trying to close the window"

Last post Tue, Oct 26 2010, 11:45 PM by ga. 14 replies.
Sort Posts: Previous Next
  •  Sun, Apr 20 2008, 9:01 AM 8451

    how to disable IE msg "webpage you are viewing is trying to close the window"

    Hi,

    Everytime I open another page within the calendar (ie like from a link in an event) and try to do a "Response.Redirect" (in the newly opened page)  I get the message "webpage you are viewing is trying to close the window" in IE.  How do I get rid of that message?  I don't want to close the page.  I just want it to redirect me to the page I specify.

    Does anyone have any ideas?

    Thanks,

    Kyle

  •  Mon, Apr 21 2008, 12:29 AM 8487 in reply to 8451

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    Hi,
    what version of IE do you use? How do you open new page: right mouse click on link and select "Open in new window/tab" or you use java-script function "window.open" in link? When do you do "Response.Redirect": in some button or link click handler?
  •  Mon, Apr 21 2008, 5:46 AM 8506 in reply to 8487

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    Hi,

    I use IE 7.

    I call the page using the

    NewLinkFormat="BLOCKED SCRIPTwindow.location = 'ScheduleSelection.aspx?start={0}';" 

    in the calendar control or the other way is clicking on the event and following the link.  Both will produce the same unwanted result.  I do the Response.redirect after i press on the "Save" button in the "ScheduleSelection.aspx" which will then supposed to redirect back to the calendar.aspx page.

    Thanks,

    Kyle

  •  Mon, Apr 21 2008, 11:58 PM 8583 in reply to 8506

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    Hi,
    try to use "window.location.href" instead of "window.location":

    NewLinkFormat="window.location.href = 'ScheduleSelection.aspx?start={0}';"

    Hope this helps. 

  •  Wed, Apr 23 2008, 9:14 PM 8680 in reply to 8583

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    Hi.

    I tried replacing window.location with window.location.href but it didn't have any effect.  I still have the same problem.  Do you have any other ideas?

    Thanks,

    Kyle

  •  Thu, Apr 24 2008, 12:11 AM 8689 in reply to 8680

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    Hi,
    please check security settings in IE for your site. Go to Internet Options> Security> (select) Internet Zone> (click) Default Level.
    Or, Internet Options> Security> (select) Internet Zone> Custom> Scripting>
    Active scripting> Enable.

  •  Fri, Apr 25 2008, 2:49 AM 8777 in reply to 8451

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    vipkyle:

    Hi,

    Everytime I open another page within the calendar (ie like from a link in an event) and try to do a "Response.Redirect" (in the newly opened page)  I get the message "webpage you are viewing is trying to close the window" in IE.  How do I get rid of that message?  I don't want to close the page.  I just want it to redirect me to the page I specify.

    Does anyone have any ideas?

    Thanks,

    Kyle

  •  Fri, Apr 25 2008, 5:28 AM 8789 in reply to 8689

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    I just checked and Active Scripting is enabled.  This seems to be an issue with only IE7.  I tried firefox and it's fine.  Is there another way around it?

    Thanks,

    Kyle

  •  Fri, Apr 25 2008, 6:10 AM 8792 in reply to 8789

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    When you open the page and then view source html produced by the page that is trying to close the window, do you see window.close code anywhere in there? If so, make sure you dont add that in the code behind on click events.

    Thanks,
    Sasha.

  •  Sat, Apr 26 2008, 9:57 AM 8885 in reply to 8792

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    Thanks.  I found the problem :)

    Kyle

  •  Tue, Apr 29 2008, 4:16 AM 9075 in reply to 8885

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    Kyle,

    How idi you fix this. i am having the same problem here. i have removed the window.close() from the click event but it is still not working. where should i put this.

    Thanks.

    Kudox.

  •  Tue, May 05 2009, 10:25 AM 10993 in reply to 8885

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    Hi Kyle,

    Please can you tell me what you did to get rid of this msg: "The webpage you are viewing is trying to close"

    Thanks in advance :)

  •  Tue, May 05 2009, 5:14 PM 10994 in reply to 10993

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    Hi,

    Have you tried the troubleshooting tips provided in this thread?  What browser are you using?

    Specifically, have you tried the following:

    When you open the page and then view source html produced by the page that is trying to close the window, do you see window.close code anywhere in there? If so, make sure you don't add that in the code behind on click events.

    Mediachase Software
  •  Sun, Oct 24 2010, 6:59 AM 11388 in reply to 8885

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    Hello Dear :

    My Project Work in Ie6 but in IE8 Have this Problem .Corresponding you Say i Mark Close Window in Click Event and Correct This Problem but now My Window no Closed .
    what i should do?

    i have delete link and when i click that open Confim Window and When Click on Yes I want delete data and close window. but now delete data but not close confirm delete window

    please help me
    please

    thanks
  •  Tue, Oct 26 2010, 11:45 PM 11389 in reply to 11388

    Re: how to disable IE msg "webpage you are viewing is trying to close the window"

    What calendar version do you use? How your delete link is implemented in markup/code?
View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems