Want to close my JSP page after some time automatically - J2EE

This is a discussion on Want to close my JSP page after some time automatically - J2EE ; I want to close my JSP page after some time automatically: I have one problem , below code works for me At time of closing IE, it is showing a confirmation message, I don't want it I want it should ...

+ Reply to Thread
Results 1 to 5 of 5

Want to close my JSP page after some time automatically

  1. Default Want to close my JSP page after some time automatically

    I want to close my JSP page after some time automatically:

    I have one problem , below code works for me



    At time of closing IE, it is showing a confirmation message, I don't want it



    I want it should close it with any prompt



    I set security in IE LOW, tell me solution ..





    --------------------Present Code ----------------------------------------





    <HTML>

    <script type="text/javascript">

    <!--

    function shutDown() {

    self.close();

    }

    function init() {

    var timer = setInterval(shutDown, 300);

    }

    onload = init;

    //-->

    </script>



    <%@ page import=" eascomptest.*,java.util.*" %>



    <%



    String ls_return ;

    n_eascomp lnv_eascomp =
    n_eascompHelper.narrow(CompWrapper.getComponent("eascomptest/n_eascomp"));

    ls_return = lnv_eascomp.of_retrieve();



    out.println(" Return Value from test " + ls_return);



    %>

    </HTML>



    -------------------- Code ----------------------------------------





  2. Default Re: Want to close my JSP page after some time automatically

    I want, it should close without any prompt





  3. Default Re: Want to close my JSP page after some time automatically

    Any reason why you just couldn't respond in the other thread instead of
    starting a new thread?


    Jenny wrote:
    > I want, it should close without any prompt
    >
    >
    >
    >


  4. Default Re: Want to close my JSP page after some time automatically

    AFAIK you can not override this. Its part of security to not allow
    malicious programs to change the browser.

    As I said before, you can close the window without a prompt if it is a
    window you have opened from the original window. If you try and close
    the original window in script you will be prompted.

    Deal with it or find a different solution.

    a.




    Jenny wrote:
    > I want, it should close without any prompt
    >
    >
    >
    >


  5. Default Re: Want to close my JSP page after some time automatically

    Thanks a lot!

    I am trying to do it.







    "Adam Simmonds [TeamSybase]" <adam.simmonds@remove.exemail.com.au> wrote in
    message news:46b13fbe@forums-1-dub...
    > AFAIK you can not override this. Its part of security to not allow
    > malicious programs to change the browser.
    >
    > As I said before, you can close the window without a prompt if it is a
    > window you have opened from the original window. If you try and close the
    > original window in script you will be prompted.
    >
    > Deal with it or find a different solution.
    >
    > a.
    >
    >
    >
    >
    > Jenny wrote:
    >> I want, it should close without any prompt
    >>
    >>
    >>



+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 07-31-2007, 09:26 PM
  2. How to close modal dialogs automatically???
    By Application Development in forum Adobe Indesign
    Replies: 2
    Last Post: 11-21-2006, 09:11 AM
  3. With FM 7.2, can you automatically close Distiller after pdfing?
    By Application Development in forum Adobe Framemaker
    Replies: 3
    Last Post: 07-25-2006, 03:28 PM
  4. Re: What if CPU IDLE TIME is close to 100%?
    By Application Development in forum Clipper
    Replies: 2
    Last Post: 08-20-2005, 09:42 PM
  5. Re: What if CPU IDLE TIME is close to 100%?
    By Application Development in forum Clipper
    Replies: 5
    Last Post: 08-20-2005, 07:38 AM