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:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<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';
document.frmStep1.submit();
var elem = document.getElementById(id);
elem.style.visibility = 'visible';
elem.style.display = 'inline';
}
</script>
</head>
<body>
<form name="frmStep1" method="post">
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td colspan="4" align="left" valign="bottom">
<input type="submit" class="form_submit" value="Search" name="Submit" onclick="disableSubmit('searchMsg');">
</td>
</tr>
<tr id="searchMsg" style="visibility:hidden; display:none;">
<td colspan="4" align="center" valign="middle"><br>
<strong>Searching, please wait</strong> <img src="images/ico_progress_bar.gif" alt="Searching, please wait">
</td>
</tr>
</table>
</form>
</body>
</html>