Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-10-2004, 12:11 AM   PM User | #1
ugly
New Coder

 
Join Date: Jan 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
ugly is an unknown quantity at this point
wait screen

Hi

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
ugly is offline   Reply With Quote
Old 11-10-2004, 12:02 PM   PM User | #2
homerUK
Regular Coder

 
Join Date: Nov 2002
Location: Manchester, UK
Posts: 533
Thanks: 4
Thanked 1 Time in 1 Post
homerUK is an unknown quantity at this point
would this help?

http://www.dynamicdrive.com/dynamici...eloadimage.htm

It's meant for images on the screen, but I bet it'd work for the Database as well.....
__________________
www.mattfacer.com
homerUK is offline   Reply With Quote
Old 11-10-2004, 07:35 PM   PM User | #3
FastCougar
Regular Coder

 
Join Date: Jan 2004
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
FastCougar is an unknown quantity at this point
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>&nbsp;<img src="images/ico_progress_bar.gif" alt="Searching, please wait">
		</td>								
	</tr>
</table>
</form>
</body>
</html>
FastCougar is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:25 AM.


Advertisement
Log in to turn off these ads.