Huge thanks to everyone for their replies and help. I think I finally figured
out the problem with all of your help.

Here's what I think it was. Frank the line after the document.write is
definitely reached, as I tried several different ways to do the submit().
One was by passing the form object to the subroutine and the other was by
calling the submit on the form from within the onclick even text. All of
those gave me the Authorization error message which is what led me to
believe that the Struts form was the guilty party. :confused: However, with
your help I came to realize that document.write obliterates the HTML of the
page it is writing to, therefore there is no longer a form to submit, hence
the reason for the message I was getting. So huge thanks to Frank and Dave
and the others for pointing that out.
Frank another huge thanks for the code snippet, I will definitely be using
<div> since in all of my research on how other sites have done it I saw them
using the <div>. However, I wanted to make sure that I first understood why
document.write didn't work and that it in fact was the culprit. Your code
snippet will be definitely utilized.
Miguel thanks for the JQuery suggestion. I've heard of it a few times now so
I think it is time I check it out.
Just in case you guys haven't figured it out yet, I'll go ahead and confess.
I'm really a back end Java developer who has been "volunteered" to do the
front end. So for the past several months I've been wrestling with the front
end as well as the back end. However, this was the first time I got really
stuck.

Huge huge thanks to all.
Rudy


Miguel-55 wrote:
> 
> You can always use JQuery.Form (http://malsup.com/jquery/form/)
> It removes the browser dependent stuff (i think it works identically
> in almost any browser), and because it's using the jquery programming
> style, it's irrelevant if it's plain html form or an struts form, as
> long as you know the id of the form in the resulting form.
> Give it a check, use the beforeSubmit function to disable the submit
> button, and the success to reactivate it. You may also use JQuery to
> do the disable/enable stuff in the button.
> 
> Si quieres ser más positivo, pierde un electrón
> Miguel Ruiz Velasco S.
> 
> 
> 
> On Tue, Dec 9, 2008 at 18:25, Dave Newton <[EMAIL PROTECTED]> wrote:
>> Heh. Hrmph. Works under Safari/OSX.
>>
>> Gives me the heebie jeebies.
>>
>>
>> --- On Tue, 12/9/08, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>>
>>> From: Frank W. Zammetti <[EMAIL PROTECTED]>
>>> Subject: Re: [OT] Re: Displaying "Please Wait" message
>>> To: "Struts Users Mailing List" <user@struts.apache.org>
>>> Date: Tuesday, December 9, 2008, 7:21 PM
>>> That's exactly the behavior I expected... odd that I
>>> didn't see it (IE7 and FF3.0.4 on XP).  I can buy
>>> it's browser-dependent, just odd to hear that FF3 would
>>> be different on OSX than on Windows.  Oh well, that's
>>> just *MORE* support for the idea of not using
>>> document.write() after the page has loaded :)
>>>
>>> Frank
>>> > --- On Tue, 12/9/08, Frank W. Zammetti wrote:
>>> >
>>> >> [...] I actually expected the alert() to NOT work
>>> because I figured the document.write() call was overwriting
>>> your page, which would have made sense, but it appears
>>> document.write() actually appends to the document.  I
>>> wouldn't swear to that, but that's what seems to be
>>> the case given my test.
>>> >>
>>> >
>>> > It's browser-dependent; on OSX/FF3 the form is
>>> gone after the document.write() (at least when Firebug is
>>> installed...) so I get an error.
>>> >
>>> > Dave
>>> >
>>> >
>>> >
>>> ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail:
>>> [EMAIL PROTECTED]
>>> > For additional commands, e-mail:
>>> [EMAIL PROTECTED]
>>> >
>>> >
>>> > __________ Information from ESET Smart Security,
>>> version of virus signature database 3679 (20081209)
>>> __________
>>> >
>>> > The message was checked by ESET Smart Security.
>>> >
>>> > http://www.eset.com
>>> >
>>> >
>>> >
>>> >
>>> >
>>>
>>>
>>> -- Frank W. Zammetti
>>> Author of "Practical Dojo Projects"
>>>  and "Practical DWR 2 Projects"
>>>  and "Practical JavaScript, DOM Scripting and Ajax
>>> Projects"
>>>  and "Practical Ajax Projects With Java
>>> Technology"
>>>  (For info:
>>> apress.com/book/search?searchterm=zammetti&act=search)
>>> My "look ma, I have a blog too!" blog:
>>> zammetti.com/blog
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail:
>>> [EMAIL PROTECTED]
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-%22Please-Wait%22-message-tp20925275p20929426.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to