Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 8169 invoked from network); 9 Dec 2008 23:54:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Dec 2008 23:54:20 -0000 Received: (qmail 25911 invoked by uid 500); 9 Dec 2008 23:54:24 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 25881 invoked by uid 500); 9 Dec 2008 23:54:24 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 25870 invoked by uid 99); 9 Dec 2008 23:54:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 15:54:24 -0800 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_OPENWHOIS,FB_GET_MEDS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 23:54:10 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LACOj-0007k1-Ct for user@struts.apache.org; Tue, 09 Dec 2008 15:53:49 -0800 Message-ID: <20926391.post@talk.nabble.com> Date: Tue, 9 Dec 2008 15:53:49 -0800 (PST) From: RudyG To: user@struts.apache.org Subject: Re: Displaying "Please Wait" message In-Reply-To: <20926103.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: rgireyev@gmail.com References: <20925275.post@talk.nabble.com> <20926103.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi EasyStrutser. Your option 2 is my fallback option. Also thanks to Wes who chimed in with the same suggestion. However, your option 3 sounds a little more interesting. Any chance you might have a link to some place that expands on that? Would be greatly appreciated. Thanks. Rudy EasyStrutser wrote: > > > RudyG wrote: >> >> Hello. >> >> I have an odd problem that I can't seem to resolve. I use struts along >> with JSP to call Java Servlets on the back end. Some back end calls take >> a little while when used by the WEB users so I've been asked to put up a >> message that tells the users to "Please Wait" so that they don't press >> the Submit button multiple times. So what I ended up doing was calling a >> Javascript function from within the onclick() event of the Submit button. >> And here are the contents of the function: >> >> function splashScreen() >> { >> document.write("

> style='color:black;background-color:aqua;text-align:center;margin:25% 25% >> 10% 25%;border: medium double black;'>Processing Data.
Please >> Wait.

"); >> document.forms[0].submit(); >> return true; >> } >> >> However the problem is that after the document write is executed the >> processing stops. All attempts of doing the submit() from Javascript also >> does not work as it gives some sort of permission violation. Does anyone >> have any suggestions? >> >> Thank you in advance. >> Rudy >> >> > > > Perhaps you can try it in following ways: > 1. by redirecting from step 1(submit page) into step 2(waiting page), no > js required > > 2. diable the submit button after use has submit once, replace or wrapper > it with waiting msg > > 3. simply diable(make it look grey with JS) the whole page after the > submit but just with an iframe which shows "waiting..." msg. > -- View this message in context: http://www.nabble.com/Displaying-%22Please-Wait%22-message-tp20925275p20926391.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org