View Single Post
Old 01-22-2011, 09:06 PM   PM User | #23
ShaneC
Codeasaurus Rex


 
Join Date: Jun 2008
Location: Redmond, WA
Posts: 659
Thanks: 31
Thanked 100 Times in 94 Posts
ShaneC is on a distinguished road
If you combine it with what I already suggested. I really don't want to do too much in the way of coding for you here. The point is that you need to learn, otherwise if this breaks down you'll have no way to fix it or even modify it.

In your jQuery AJAX you put a condition:

Code:
var refreshCountdown = 	setInterval( function() {
						$.get( "/ajaxTimer.php", {}, function( data ){
							if( data == "Database Backup in T-Minus 0 minutes 0 seconds!" )
								$("#backupCheckbox").hide();
							else
								$("#countdownBlock").html( data );
						});
					}, 1000 );
__________________
Unless otherwise stated, any code posted is most likely untested and may contain syntax errors.
My posts, comments, code, and suggestions reflect only my personal views.
Web Portfolio and Code Snippets: http://shanechism.com
ShaneC is offline   Reply With Quote