Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Waiting

$
0
0
Re: Waiting
Web Connection 5.0
Re: Waiting
04/10/2012
11:30:23 PM
3H51EDVT9 Show this entire thread in new window
Gratar Image based on email address
From:
Luca
To:
Attachments:
None
Dear Rick,
in your Help you say about ProgressBar:

"Server Control Behavior
The control works both as a client and server control. You can use the control as a server only control simply by setting its properties. You can set the percentage and message and when the page is rendered the control will properly render the settings of the control. The server settings are always used for first time rendering so if you set settings in the designer these settings affect the initial view.
As a server control the control can be useful in scenarios when you have a long, multi-step process where you want to show users your progress of the whole. You can use the control to display the current status as you go along. Note for server only behavior a Postback is required to update the control values."

Please, is it possible do something this:

* start procedure this.wwWebProgressBar.ShowProgress(25,"please wait...") * first block operations this.wwWebProgressBar.ShowProgress(50,"please wait...") * second block operations this.wwWebProgressBar.ShowProgress(75,"please wait...") * ending procedure this.wwWebProgressBar.ShowProgress(100,"please wait...")

What do you mean with "a Postback is required to update the control values"?



Dear Rick,
I think a ProgressBar maybe would be very useful to me.
In my long procedures on desktop VFP applications I know on advance how much steps are and typically I refresh a progressbar to take users waiting.
So I think I would like to do the same on webpages, if possible.
Please is it possible the following:

* start procedure this.wwWebProgressBar.ShowProgress(25,"please wait...") * first block operations this.wwWebProgressBar.ShowProgress(50,"please wait...") * second block operations this.wwWebProgressBar.ShowProgress(75,"please wait...") * ending procedure this.wwWebProgressBar.ShowProgress(100,"please wait...")

I tried some example but after waiting I see only the final 100% progress status.
Thank you vey much


You can use some JavaScript to do this. When you submit the form you can display a client side dialog or overlay.

Using jQUery and wwJquery you can use the modalDialog() function.

Add an image or any HTML element you want to display ontop of the modal background:

<img src="~/images/loading_black.gif" id="imgLoading" style="display:none" />

Then add this script (make sure you add jQUery and wwjQuery to the page):

<script type="text/javascript"> $(document).ready(function () { $("form").submit(function () { $("#imgLoading").modalDialog(); }); }); </script>

When you click a submit button on the page now a modal overlay will show with the image (or whatever else you chose to display) overlaid on top.

+++ Rick ---


dear Rick,
I have some complex procedure (data processing + Excel graphs creation + PDF creation) ending with Response.DownloadFile().
The time waiting is about 5-10 seconds, so before to use wwWebProgressBar class I would like to show some message like "Please wait..." over the web page.
Please, is there a way to do that, or I have to redirect every time on a "waiting" web page?
Thank you very much






Viewing all articles
Browse latest Browse all 10393

Trending Articles