struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Longwell <listse...@newmedialogic.com>
Subject Re: Splash Screen in Struts
Date Tue, 15 Jul 2003 22:36:21 GMT
I'll have to look into this... I know I did it before in a situation 
with frames.... Javascript was actually executed in some other frame... 
so that the long-loading window could be manipulated by another frame 
(which can always execute javascript even when the other window is loading).



Dhruva B. Reddy wrote:

>This doesn't seem to work--nothing after the first submit() call gets
>executed.
>
>I assume you put all of this code in the onclick handler for the submit
>button.
>
>--- Aaron Longwell <listservs@newmedialogic.com> wrote:
>  
>
>>Dhruva,
>>
>>I have done this before.... the absolute cleanest implementation is 
>>almost 100% javascript:
>>
>>1) Javascript submit(); call to start POST page loading
>>2) Javascript delete contents of the window
>>(javascript:document.clear();)
>>3) Write new content to the window... adding in an <img> tag to a 
>>animated GIF (or, cooler a Flash movie)
>>this is done with one call to document.write(str); You have to
>>populate 
>>the str variable first because each document.write causes the window
>>to 
>>be cleared and then rewritten.
>>
>>Item #2 is somewhat optional, but I like it for clarity and I'm a
>>little 
>>weird.
>>
>>Aaron
>>
>>Dhruva B. Reddy wrote:
>>
>>    
>>
>>>I have an Action that could potentially take a long time to execute,
>>>and would like to display a splash screen until the results of the
>>>action are ready.
>>>
>>>I went googling for this, but I can't seem to find a solution that
>>>would fit within the Struts framework.  Has anyone done this before?
>>>
>>>Thanks,
>>>Dhruva
>>>
>>>__________________________________
>>>Do you Yahoo!?
>>>SBC Yahoo! DSL - Now only $29.95 per month!
>>>http://sbc.yahoo.com
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>    
>>
>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>
>>> 
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>__________________________________
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message