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
05:30:34 AM
3H50BT5QJ Show this entire thread in new window
Gratar Image based on email address
From:
Luca
To:
Attachments:
None
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