Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Want to close my JSP page after some time automatically

5 posts in Java J2EE specific Last posting was on 2007-08-02 15:48:29.0Z
Jenny Posted on 2007-08-02 00:46:28.0Z
Reply-To: "Jenny" <cs121@hotmail.com>
From: "Jenny" <cs121@hotmail.com>
Newsgroups: sybase.public.easerver.j2ee
Subject: Want to close my JSP page after some time automatically
Lines: 84
Organization: CA
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: surfwc054.sybase.com
X-Original-NNTP-Posting-Host: surfwc054.sybase.com
Message-ID: <46b12964@forums-1-dub>
Date: 1 Aug 2007 17:46:28 -0700
X-Trace: forums-1-dub 1186015588 192.138.150.54 (1 Aug 2007 17:46:28 -0700)
X-Original-Trace: 1 Aug 2007 17:46:28 -0700, surfwc054.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7817
Article PK: 208247

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


Jenny Posted on 2007-08-02 00:48:00.0Z
Reply-To: "Jenny" <cs121@hotmail.com>
From: "Jenny" <cs121@hotmail.com>
Newsgroups: sybase.public.easerver.j2ee
References: <46b12964@forums-1-dub>
Subject: Re: Want to close my JSP page after some time automatically
Lines: 5
Organization: CA
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: surfwc054.sybase.com
X-Original-NNTP-Posting-Host: surfwc054.sybase.com
Message-ID: <46b129c0@forums-1-dub>
Date: 1 Aug 2007 17:48:00 -0700
X-Trace: forums-1-dub 1186015680 192.138.150.54 (1 Aug 2007 17:48:00 -0700)
X-Original-Trace: 1 Aug 2007 17:48:00 -0700, surfwc054.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7818
Article PK: 208250

I want, it should close without any prompt


Adam Simmonds [TeamSybase] Posted on 2007-08-02 02:02:05.0Z
From: "Adam Simmonds [TeamSybase]" <adam.simmonds@remove.exemail.com.au>
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
MIME-Version: 1.0
Newsgroups: sybase.public.easerver.j2ee
Subject: Re: Want to close my JSP page after some time automatically
References: <46b12964@forums-1-dub> <46b129c0@forums-1-dub>
In-Reply-To: <46b129c0@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: nat-1257.mp.usyd.edu.au
X-Original-NNTP-Posting-Host: nat-1257.mp.usyd.edu.au
Message-ID: <46b13b1d$1@forums-1-dub>
Date: 1 Aug 2007 19:02:05 -0700
X-Trace: forums-1-dub 1186020125 129.78.56.233 (1 Aug 2007 19:02:05 -0700)
X-Original-Trace: 1 Aug 2007 19:02:05 -0700, nat-1257.mp.usyd.edu.au
Lines: 10
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7820
Article PK: 208248

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


Adam Simmonds [TeamSybase] Posted on 2007-08-02 02:21:50.0Z
From: "Adam Simmonds [TeamSybase]" <adam.simmonds@remove.exemail.com.au>
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
MIME-Version: 1.0
Newsgroups: sybase.public.easerver.j2ee
Subject: Re: Want to close my JSP page after some time automatically
References: <46b12964@forums-1-dub> <46b129c0@forums-1-dub>
In-Reply-To: <46b129c0@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: nat-1257.mp.usyd.edu.au
X-Original-NNTP-Posting-Host: nat-1257.mp.usyd.edu.au
Message-ID: <46b13fbe@forums-1-dub>
Date: 1 Aug 2007 19:21:50 -0700
X-Trace: forums-1-dub 1186021310 129.78.56.233 (1 Aug 2007 19:21:50 -0700)
X-Original-Trace: 1 Aug 2007 19:21:50 -0700, nat-1257.mp.usyd.edu.au
Lines: 20
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7822
Article PK: 208251

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


Jenny Posted on 2007-08-02 15:48:29.0Z
Reply-To: "Jenny" <cs121@hotmail.com>
From: "Jenny" <cs121@hotmail.com>
Newsgroups: sybase.public.easerver.j2ee
References: <46b12964@forums-1-dub> <46b129c0@forums-1-dub> <46b13fbe@forums-1-dub>
Subject: Re: Want to close my JSP page after some time automatically
Lines: 32
Organization: CA
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: surfwc054.sybase.com
X-Original-NNTP-Posting-Host: surfwc054.sybase.com
Message-ID: <46b1fccd$1@forums-1-dub>
Date: 2 Aug 2007 08:48:29 -0700
X-Trace: forums-1-dub 1186069709 192.138.150.54 (2 Aug 2007 08:48:29 -0700)
X-Original-Trace: 2 Aug 2007 08:48:29 -0700, surfwc054.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7823
Article PK: 208252

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