Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
maquejp #1
Temporary message to user waiting the result of thequery
Hello,
I am generating dispalying the result of a many records (1619x1619)
crosstabbed; is there a way to show a message (html) asking the user to wait
the result of his page? this message should be hidden when the result is
displayed...
I am not sure to be clear, but it is sunday evening and it is pretty warm
today in my office...
maquejp Guest
-
Draft deleted but user still waiting for it.
My co-worker sent me edits to the homepage to edit or approve via Contribute. I then chose to delete the draft via Contribute as the changes were... -
Get result from temporary Oracle Table
Hi, Having problem with temporary table from Oracle. Runing my stored procedure (which stores an amount of row in a temporary table) from an Sql... -
Launch a system command without waiting for the result
Hi, I'd like to run a DOS command with PHP without waiting for the result as system() did. My command takes a bit of time and I get a timeout... -
HELP - User threads "Waiting on a buffer"
All, We are running into an issue with IDS 7.31.UD4 engine. We are running some load testing against our applications, and we notice that... -
User defined function causes empty result set
I have created a UDF that takes an INTEGER as parameter and returns a VARCHAR. Whenever I try to use the function in a SELECT, it causes the SELECT... -
MikerRoo #2
RE: Temporary message to user waiting the result of thequery
One way to do it is attached.
<CFOUTPUT>
<h1 id="FriendlyStatusMessage">I'm busy! Wait...</h1>
</CFOUTPUT>
<CFFLUSH>
*** Finish big long query here. ***
<CFOUTPUT>
<script type="text/javascript">
var zStatDiv = document.getElementById
? document.getElementById ("FriendlyStatusMessage")
: document.all? document.all["FriendlyStatusMessage"]
: alert ('Your browser needs to be replaced with
FireFox.')
zStatDiv.style.display="none"
</script>
</CFOUTPUT>
*** Finish page display here. ***
MikerRoo Guest
-
Chikowski #3
Re: Temporary message to user waiting the result of thequery
In my page I do a <cfinclude template="fileName.cfm">
Then I include the following code into that included template:
<cfoutput>
<table id="progressbar" >
<tr>
<th><font size="2px"><strong />Processing, please be patient...</font></th>
</tr>
<tr id="i1">
<td><img src="#Request.WebSvrHttpAddr#Images/Processing/progress_a.gif"
id="divProcessingWindowImage" border="0"></td>
</tr>
</table>
<script>
function hideProgressBar(){
document.getElementById('progressbar').style.displ ay = "none";
}
AE_AttachEvent("onload", "hideProgressBar");
</script>
</cfoutput>
<cfflush>
Basically it is an animated gif and asking the user to wait. It gives the
user a feeling that the page is doing something.
The main thing that happens is a table being shown before everything else by
using <cfflush> then when the page loads, the table is hidden.
Chikowski Guest
-
cgsj_usa@yahoo.com #4
Re: Temporary message to user waiting the result of thequery
Does your "animated gif" appear immediately when the form/query is submitted? Or does it just flash right before the results are displayed? Thanks.
Chris
cgsj_usa@yahoo.com Guest
-
Chikowski #5
Re: Temporary message to user waiting the result of thequery
It appears as fast as the client's web browser can display it, then it gets hidden as soon as the data from the query is ready to be displayed.
Chikowski Guest
-
Chikowski #6
Re: Temporary message to user waiting the result of thequery
As far as I know, there is no way to show something like a progressbar or an
animated gif and have it stay on the page so the viewer can see it until the
query'ed data is shown. I have noticed that with hugh sets of data to be
displayed to the user, there are a few seconds where the page is blank and the
browser is organizing the data to output. Once the bowser is done organizing
the data, it shows all the data.
Chikowski Guest
-
maquejp #7
Re: Temporary message to user waiting the result of thequery
Originally posted by: MikerRoo
One way to do it is attached.
Hello,
I have tried with a smaller query and it works well; I will do the test with the "big" one tonight.
maquejp Guest



Reply With Quote

