RE: How to show a 'please wait' page while performing action

2004-08-05 Thread tiwari.rajeev

Sorry fr'd,
Code snippet I would need to write again as I have left the organization
so do not have access to that code base.
Hope you understand this practical situation/


- regards

Raj
(+91-11-31261821)

-Original Message-
From: Shailender Jain [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 05, 2004 2:26 PM
To: Struts Users Mailing List
Subject: Re: How to show a 'please wait' page while performing action

Hi,

Thanks for the response.

Can you send me the code snippet.
It will be really helpful.

Shailender Jain

[EMAIL PROTECTED] wrote:

> Yup buddy,
> We tested it in both the case and it worked pretty fine,
>
> But yup, the code to invoke div was a bit different in netscape*. If
we
> need to keep support for multiple browser compatibility, get the
browser
> name and version in start and code the page in DHTML  fashion and on
> change of the field call a wrapper function which will call either of
> the two functions (one for IE and another for Netscape)
>
> * That was one reason I didn't talk in code language to explain the
> approach.
>
> For such case, I will recommend to use mozila firebird with plugin to
> change its behavior as simulating any established browser (same
mozilla
> browser can simulate itself as many as 8 browsers)
>
> - regards
>
> Raj
> (+91-11-31261821)
>
> -Original Message-
> From: Shailender Jain [mailto:[EMAIL PROTECTED]
>
> Sent: Thursday, August 05, 2004 2:09 PM
> To: Struts Users Mailing List
> Subject: Re: How to show a 'please wait' page while performing action
>
> Hi Tiwari,
>
> Did you tested this approach in Netscape.
> What was the result?
>
> I implemented the same thing and everything works fine in IE but not
in
> Netscape?
> In netscape both the DIV starts coming.
>
> Shailender Jain
>
> [EMAIL PROTECTED] wrote:
>
> > Hi Christian,
> > Here I am giving you the approach we implemented to handle this
> > scenario.
> >
> > We developed two separate presentations in two div of a html page
> before
> > converting this page to JSP. One div (div1) of this just display
> "Please
> > wait, Work in Progress" kind of message and second div (div2)
contains
> > the actual logic of processing.
> >
> > At the start of page somewhere, declare a JavaScript variable and by
> > default make this variable false.
> >
> > By default show the visibility of div1 as true. Now at the end of
page
> > where all the processing has been done change the above declared
> > variable as true.
> >
> > On change of this variable call a JavaScript function which will set
> > visibility of div1 as false and div2 visibility as true.
> >
> > Then onwards, put your java code (scriptlet) into div2.
> >
> > Using this approach, we could smoothly implement please wait
> operation.
> >
> > Hope this will help you.
> >
> > - regards
> >
> > Raj
> > (+91-11-31261821)
> >
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Christian Riedel
> > Sent: Thursday, August 05, 2004 1:55 PM
> > To: [EMAIL PROTECTED]
> > Subject: How to show a 'please wait' page while performing action
> >
> > Hi,
> >
> > I am trying to implement a page, that is shown during perfoming a
file
> >
> > upload action.
> >
> > When the upload form is submitted I want a new page to be displayed
> >
> > showing a 'please wait' message. While this page is shown the actual
> >
> > file-upload should be performed and then, when the upload is
finished,
> >
> > the actual 'result-page' should be shown.
> >
> > By now I can only submit the form. the file-upload starts and the
page
> >
> > does not do anything until the upload is completed. So if the upload
> >
> > takes a long time the user does not really know what's happening.
> >
> > Can anyone help me with this?
> >
> > TIA
> >
> > Christian
> > --
> >
> > To reply to this posting directly use the following address and
> > remove the 'NO-SPAM' part: [EMAIL PROTECTED]
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > Confidentiality Notice
> >
> > The information contained in this electronic message and any
> attachments to this message are intended
> > for the exclusive use of the addressee(s) and may contain
confidential
> or privileged information. I

Re: How to show a 'please wait' page while performing action

2004-08-05 Thread Shailender Jain
Hi,

Thanks for the response.

Can you send me the code snippet.
It will be really helpful.

Shailender Jain

[EMAIL PROTECTED] wrote:

> Yup buddy,
> We tested it in both the case and it worked pretty fine,
>
> But yup, the code to invoke div was a bit different in netscape*. If we
> need to keep support for multiple browser compatibility, get the browser
> name and version in start and code the page in DHTML  fashion and on
> change of the field call a wrapper function which will call either of
> the two functions (one for IE and another for Netscape)
>
> * That was one reason I didn't talk in code language to explain the
> approach.
>
> For such case, I will recommend to use mozila firebird with plugin to
> change its behavior as simulating any established browser (same mozilla
> browser can simulate itself as many as 8 browsers)
>
> - regards
>
> Raj
> (+91-11-31261821)
>
> -Original Message-
> From: Shailender Jain [mailto:[EMAIL PROTECTED]
>
> Sent: Thursday, August 05, 2004 2:09 PM
> To: Struts Users Mailing List
> Subject: Re: How to show a 'please wait' page while performing action
>
> Hi Tiwari,
>
> Did you tested this approach in Netscape.
> What was the result?
>
> I implemented the same thing and everything works fine in IE but not in
> Netscape?
> In netscape both the DIV starts coming.
>
> Shailender Jain
>
> [EMAIL PROTECTED] wrote:
>
> > Hi Christian,
> > Here I am giving you the approach we implemented to handle this
> > scenario.
> >
> > We developed two separate presentations in two div of a html page
> before
> > converting this page to JSP. One div (div1) of this just display
> "Please
> > wait, Work in Progress" kind of message and second div (div2) contains
> > the actual logic of processing.
> >
> > At the start of page somewhere, declare a JavaScript variable and by
> > default make this variable false.
> >
> > By default show the visibility of div1 as true. Now at the end of page
> > where all the processing has been done change the above declared
> > variable as true.
> >
> > On change of this variable call a JavaScript function which will set
> > visibility of div1 as false and div2 visibility as true.
> >
> > Then onwards, put your java code (scriptlet) into div2.
> >
> > Using this approach, we could smoothly implement please wait
> operation.
> >
> > Hope this will help you.
> >
> > - regards
> >
> > Raj
> > (+91-11-31261821)
> >
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Christian Riedel
> > Sent: Thursday, August 05, 2004 1:55 PM
> > To: [EMAIL PROTECTED]
> > Subject: How to show a 'please wait' page while performing action
> >
> > Hi,
> >
> > I am trying to implement a page, that is shown during perfoming a file
> >
> > upload action.
> >
> > When the upload form is submitted I want a new page to be displayed
> >
> > showing a 'please wait' message. While this page is shown the actual
> >
> > file-upload should be performed and then, when the upload is finished,
> >
> > the actual 'result-page' should be shown.
> >
> > By now I can only submit the form. the file-upload starts and the page
> >
> > does not do anything until the upload is completed. So if the upload
> >
> > takes a long time the user does not really know what's happening.
> >
> > Can anyone help me with this?
> >
> > TIA
> >
> > Christian
> > --
> >
> > To reply to this posting directly use the following address and
> > remove the 'NO-SPAM' part: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > Confidentiality Notice
> >
> > The information contained in this electronic message and any
> attachments to this message are intended
> > for the exclusive use of the addressee(s) and may contain confidential
> or privileged information. If
> > you are not the intended recipient, please notify the sender at Wipro
> or [EMAIL PROTECTED] immediately
> > and destroy all copies of this message and any attachments.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -

RE: How to show a 'please wait' page while performing action

2004-08-05 Thread tiwari.rajeev

Yup buddy,
We tested it in both the case and it worked pretty fine,

But yup, the code to invoke div was a bit different in netscape*. If we
need to keep support for multiple browser compatibility, get the browser
name and version in start and code the page in DHTML  fashion and on
change of the field call a wrapper function which will call either of
the two functions (one for IE and another for Netscape)

* That was one reason I didn't talk in code language to explain the
approach.

For such case, I will recommend to use mozila firebird with plugin to
change its behavior as simulating any established browser (same mozilla
browser can simulate itself as many as 8 browsers)


- regards

Raj
(+91-11-31261821)

-Original Message-
From: Shailender Jain [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 05, 2004 2:09 PM
To: Struts Users Mailing List
Subject: Re: How to show a 'please wait' page while performing action

Hi Tiwari,

Did you tested this approach in Netscape.
What was the result?

I implemented the same thing and everything works fine in IE but not in
Netscape?
In netscape both the DIV starts coming.


Shailender Jain

[EMAIL PROTECTED] wrote:

> Hi Christian,
> Here I am giving you the approach we implemented to handle this
> scenario.
>
> We developed two separate presentations in two div of a html page
before
> converting this page to JSP. One div (div1) of this just display
"Please
> wait, Work in Progress" kind of message and second div (div2) contains
> the actual logic of processing.
>
> At the start of page somewhere, declare a JavaScript variable and by
> default make this variable false.
>
> By default show the visibility of div1 as true. Now at the end of page
> where all the processing has been done change the above declared
> variable as true.
>
> On change of this variable call a JavaScript function which will set
> visibility of div1 as false and div2 visibility as true.
>
> Then onwards, put your java code (scriptlet) into div2.
>
> Using this approach, we could smoothly implement please wait
operation.
>
> Hope this will help you.
>
> - regards
>
> Raj
> (+91-11-31261821)
>
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Christian Riedel
> Sent: Thursday, August 05, 2004 1:55 PM
> To: [EMAIL PROTECTED]
> Subject: How to show a 'please wait' page while performing action
>
> Hi,
>
> I am trying to implement a page, that is shown during perfoming a file
>
> upload action.
>
> When the upload form is submitted I want a new page to be displayed
>
> showing a 'please wait' message. While this page is shown the actual
>
> file-upload should be performed and then, when the upload is finished,
>
> the actual 'result-page' should be shown.
>
> By now I can only submit the form. the file-upload starts and the page
>
> does not do anything until the upload is completed. So if the upload
>
> takes a long time the user does not really know what's happening.
>
> Can anyone help me with this?
>
> TIA
>
> Christian
> --
>
> To reply to this posting directly use the following address and
> remove the 'NO-SPAM' part: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> Confidentiality Notice
>
> The information contained in this electronic message and any
attachments to this message are intended
> for the exclusive use of the addressee(s) and may contain confidential
or privileged information. If
> you are not the intended recipient, please notify the sender at Wipro
or [EMAIL PROTECTED] immediately
> and destroy all copies of this message and any attachments.
>
> -
> 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]





Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



Re: How to show a 'please wait' page while performing action

2004-08-05 Thread Shailender Jain
Hi Tiwari,

Did you tested this approach in Netscape.
What was the result?

I implemented the same thing and everything works fine in IE but not in Netscape?
In netscape both the DIV starts coming.


Shailender Jain

[EMAIL PROTECTED] wrote:

> Hi Christian,
> Here I am giving you the approach we implemented to handle this
> scenario.
>
> We developed two separate presentations in two div of a html page before
> converting this page to JSP. One div (div1) of this just display "Please
> wait, Work in Progress" kind of message and second div (div2) contains
> the actual logic of processing.
>
> At the start of page somewhere, declare a JavaScript variable and by
> default make this variable false.
>
> By default show the visibility of div1 as true. Now at the end of page
> where all the processing has been done change the above declared
> variable as true.
>
> On change of this variable call a JavaScript function which will set
> visibility of div1 as false and div2 visibility as true.
>
> Then onwards, put your java code (scriptlet) into div2.
>
> Using this approach, we could smoothly implement please wait operation.
>
> Hope this will help you.
>
> - regards
>
> Raj
> (+91-11-31261821)
>
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Christian Riedel
> Sent: Thursday, August 05, 2004 1:55 PM
> To: [EMAIL PROTECTED]
> Subject: How to show a 'please wait' page while performing action
>
> Hi,
>
> I am trying to implement a page, that is shown during perfoming a file
>
> upload action.
>
> When the upload form is submitted I want a new page to be displayed
>
> showing a 'please wait' message. While this page is shown the actual
>
> file-upload should be performed and then, when the upload is finished,
>
> the actual 'result-page' should be shown.
>
> By now I can only submit the form. the file-upload starts and the page
>
> does not do anything until the upload is completed. So if the upload
>
> takes a long time the user does not really know what's happening.
>
> Can anyone help me with this?
>
> TIA
>
> Christian
> --
>
> To reply to this posting directly use the following address and
> remove the 'NO-SPAM' part: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> Confidentiality Notice
>
> The information contained in this electronic message and any attachments to this 
> message are intended
> for the exclusive use of the addressee(s) and may contain confidential or privileged 
> information. If
> you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
> PROTECTED] immediately
> and destroy all copies of this message and any attachments.
>
> -
> 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]



Re: How to show a 'please wait' page while performing action

2004-08-05 Thread Christian Riedel
Hi Alexander,
thanks for your answer ...
- on the main-form perform the submit with the file-upload and show the 
  result-page when it is finished 
  - To do the submit use a javascript function which performs the submit
and opens a popup-window with a new request.
- The "main"-action puts a flag into the user-session while doing its work
- The "secondary"-(popup)-Action checks for that flag
  - while it is on it just reshows with a refresh-header
  - as soo as it is off: show a html that contains a javascript-function to
close the popup-window
This might work, yes, but there are two things.
1. I don't want to use javascript
2. We want to avaoid any popups
But anyways, I'll keep your proposal in mind.
Christian
--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to show a 'please wait' page while performing action

2004-08-05 Thread Shailender Jain
Hi,

The most simple way to do this is by making use of JavaScript.
You can put some message like 'EXECUTING' or some image  in the same page
with the DIV tag.

This DIV tag should be in the hide mode by default. When the user says
'UPLOAD' then this DIV tag should be visible
and the rest of the tag should be invisible.

I have done this functionality for IE but it does not work in Netscape
because Netscape does not support DIV tag.
May be you can try on GOOGLE to get such code.

Regards
Shailender Jain

--Code Snippets


<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
















  Coverage Import Upload Page
  
 
   var valid=false;

 if (document.layers)
 document.captureEvents(Event.KEYPRESS);
 document.onkeypress = function (evt)
 {
var key = document.all ? event.keyCode :evt.which ? evt.which :
evt.keyCode;
if (key == 13)
doSubmit();
 };

 function doSubmit()
 {

 valid=false;
 if(document.forms[0].theFile.value!="")
 {
//  alert(document.forms[0].theFile.value);
 if(getFileExt(document.forms[0].theFile.value))
 {
  valid=true;

show(false,'div2');
show(true,'div1');

 document.forms[0].submit();

  }
 }
 else
 {
alert("Select a file for upload ");
valid=false;
 }

  //  document.forms[0].submit();

 }

   function onLoadFunction()
  {
  show(false,'div1');


  }
 












<%@ include file="/view/home/menu.jsp" %>

  
  
  
  Home >> Coverage Import 
  
  
 




   
   
 
  Please select the file that you would like to
upload:
 





 

 


   
 








 
 
 
  






Coverage
Import in Progress.. 












Christian Riedel wrote:

> Hi,
>
> I am trying to implement a page, that is shown during perfoming a file
> upload action.
>
> When the upload form is submitted I want a new page to be displayed
> showing a 'please wait' message. While this page is shown the actual
> file-upload should be performed and then, when the upload is finished,
> the actual 'result-page' should be shown.
>
> By now I can only submit the form. the file-upload starts and the page
> does not do anything until the upload is completed. So if the upload
> takes a long time the user does not really know what's happening.
>
> Can anyone help me with this?
>
> TIA
>
> Christian
> --
> To reply to this posting directly use the following address and
> remove the 'NO-SPAM' part: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: How to show a 'please wait' page while performing action

2004-08-05 Thread tiwari.rajeev

Hi Christian,
Here I am giving you the approach we implemented to handle this
scenario.

We developed two separate presentations in two div of a html page before
converting this page to JSP. One div (div1) of this just display "Please
wait, Work in Progress" kind of message and second div (div2) contains
the actual logic of processing.

At the start of page somewhere, declare a JavaScript variable and by
default make this variable false.
By default show the visibility of div1 as true. Now at the end of page
where all the processing has been done change the above declared
variable as true.

On change of this variable call a JavaScript function which will set
visibility of div1 as false and div2 visibility as true.

Then onwards, put your java code (scriptlet) into div2.

Using this approach, we could smoothly implement please wait operation.

Hope this will help you.

- regards

Raj
(+91-11-31261821)

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Christian Riedel
Sent: Thursday, August 05, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: How to show a 'please wait' page while performing action

Hi,

I am trying to implement a page, that is shown during perfoming a file
upload action.

When the upload form is submitted I want a new page to be displayed
showing a 'please wait' message. While this page is shown the actual
file-upload should be performed and then, when the upload is finished,
the actual 'result-page' should be shown.

By now I can only submit the form. the file-upload starts and the page
does not do anything until the upload is completed. So if the upload
takes a long time the user does not really know what's happening.

Can anyone help me with this?

TIA

Christian
--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: [EMAIL PROTECTED]


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





Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



RE: How to show a 'please wait' page while performing action

2004-08-05 Thread Jesse Alexander (KXT)
Hi,

how about that:

- on the main-form perform the submit with the file-upload and show the 
  result-page when it is finished 
  - To do the submit use a javascript function which performs the submit
and opens a popup-window with a new request.
- The "main"-action puts a flag into the user-session while doing its work
- The "secondary"-(popup)-Action checks for that flag
  - while it is on it just reshows with a refresh-header
  - as soo as it is off: show a html that contains a javascript-function to
close the popup-window

Have not tried it myself, but should be feasable.
hope this helps
Alexander

-Original Message-
From: Christian Riedel [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 05, 2004 10:25 AM
To: [EMAIL PROTECTED]
Subject: How to show a 'please wait' page while performing action

Hi,

I am trying to implement a page, that is shown during perfoming a file 
upload action.

When the upload form is submitted I want a new page to be displayed 
showing a 'please wait' message. While this page is shown the actual 
file-upload should be performed and then, when the upload is finished, 
the actual 'result-page' should be shown.

By now I can only submit the form. the file-upload starts and the page 
does not do anything until the upload is completed. So if the upload 
takes a long time the user does not really know what's happening.

Can anyone help me with this?

TIA

Christian
-- 
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: [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]



How to show a 'please wait' page while performing action

2004-08-05 Thread Christian Riedel
Hi,
I am trying to implement a page, that is shown during perfoming a file 
upload action.

When the upload form is submitted I want a new page to be displayed 
showing a 'please wait' message. While this page is shown the actual 
file-upload should be performed and then, when the upload is finished, 
the actual 'result-page' should be shown.

By now I can only submit the form. the file-upload starts and the page 
does not do anything until the upload is completed. So if the upload 
takes a long time the user does not really know what's happening.

Can anyone help me with this?
TIA
Christian
--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]