Hi,
    Thanks for your reply.  I prefer to use your first solution.  But how I
close the popup window when the process is done?
For example if I wrote this:

function submitForm(){

waitwin=window.open("/servlet/Controller?cmd=wait","popupwin","status=no,too
lbar=no,scrollbars=yes,width=400,height=300 top=165, left=255")
    document.processform.submit();
    waitwin.close();
}

I think the popup window will close immediately if I do like this.   Can you
give me more details how to this?
Thanks.





Regards,

Louis
���`���,���,���`���,�����,���`���,��,���`���

----- Original Message -----
From: "JSP Insider" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 20, 2000 8:14 PM
Subject: Re: waiting page...


> Try using JavaScript to pop up a little please wait window when the form
is
> submitted. I believe the JavaScript event is onSubmit.
>
> You could also use scripts to change the content of the page submitting
the
> form. Either way should work and not require the server to use any more
> processing power.
>
> Jayson Falkner
> [EMAIL PROTECTED]
>
> ----- Original Message -----
> From: "Louis" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, November 20, 2000 10:17 PM
> Subject: waiting page...
>
>
> > Hi,
> >     I have a page, when the user click the process button, it will go to
> the
> > servlet to do the process.  The process may take some times, so I want
to
> > show a waiting page tell user the request is processing, please
> wait...etc.
> > After the process is finish, the waiting page will automatically go to
the
> > result page.
> >     Anyone know how to do it?
> >
> > I have 2 solutions, but I don't think there are good.  First solution is
> > using <meta http-equiv="refresh" content="0;URL=<%=url%>">
> > To decalre the url, I need to do
> > <%
> >  String serverip = request.getServerName();
> >  String serverport = String.valueOf(request.getServerPort());
> >  String url = "http://"+serverip+":"+serverport+"/servlet/Controller";
> > %>
> > because I cannot hard code the server url, so I don't like these.
> >
> > Second solution is using javascript setInterval function to auto submit
> the
> > form.  but this only work in IE, not in netscape. So I can't use it.
> >
> > Please tell me any others good solution.
> >
> > Thanks
> >
> >
> >
> >
> >
> > Regards,
> >
> > Louis
> > ���`���,���,���`���,�����,���`���,��,���`���
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to