View Full Version : wait screen

11-10-2004, 01:11 AM

i am doing .net application.when user clicks on submit i am searching three tables and there is huge logic on that.i want to show on the screen saying "please wait when we search..." without my webpage data and when i get result from databse i need to display same search page b'coz i am binding data to datagrid. the waiting page like when we search flights on expedia.com or smilar that.

thanks for any help

11-10-2004, 01:02 PM
would this help?


It's meant for images on the screen, but I bet it'd work for the Database as well.....

11-10-2004, 08:35 PM
I program in ColdFusion and have dealt with this recently. I'm currently having 1 page send the query request to a 2nd page. It's the waiting on the second page that causes the 'pause' in the browser. So, I have done the following, which not only displays the "searching" message, but also disables the button so that they can't double click the button:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>Test Progress Bar</title>
<script language="JavaScript">
function disableSubmit(id) {
window.status = 'Searching, please wait';
document.frmStep1.Submit.disabled = true;
document.frmStep1.action = 'step2.cfm';
var elem = document.getElementById(id);
elem.style.visibility = 'visible';
elem.style.display = 'inline';
<form name="frmStep1" method="post">
<table border="0" cellpadding="2" cellspacing="0">
<td colspan="4" align="left" valign="bottom">
<input type="submit" class="form_submit" value="Search" name="Submit" onclick="disableSubmit('searchMsg');">
<tr id="searchMsg" style="visibility:hidden; display:none;">
<td colspan="4" align="center" valign="middle"><br>
<strong>Searching, please wait</strong>&nbsp;<img src="images/ico_progress_bar.gif" alt="Searching, please wait">