Click here to Skip to main content
15,911,890 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: How to detect .msi file ? Pin
002comp2-Aug-10 18:42
002comp2-Aug-10 18:42 
GeneralRe: How to detect .msi file ? Pin
daveyerwin3-Aug-10 5:58
daveyerwin3-Aug-10 5:58 
GeneralRe: How to detect .msi file ? Pin
002comp3-Aug-10 19:47
002comp3-Aug-10 19:47 
GeneralRe: How to detect .msi file ? Pin
002comp4-Aug-10 1:46
002comp4-Aug-10 1:46 
GeneralRe: How to detect .msi file ? Pin
daveyerwin4-Aug-10 12:26
daveyerwin4-Aug-10 12:26 
GeneralRe: How to detect .msi file ? Pin
002comp4-Aug-10 21:14
002comp4-Aug-10 21:14 
QuestionRefresh Div content Pin
Shantanu Gupta 133731-Jul-10 6:18
Shantanu Gupta 133731-Jul-10 6:18 
AnswerRe: Refresh Div content [modified] Pin
daveyerwin31-Jul-10 7:55
daveyerwin31-Jul-10 7:55 
<!DOCTYPE html>
<html>
<head>  
  <script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script>
var ic = 0;
var s0 = "Redirecting";
var s1 = "Redirecting.";
var s2 = "Redirecting..";
var s3 = "Redirecting...";
function redir(ic) {
	ic++;
	switch(ic) {
		case 1:
			$('#text1').html(s0);
			break;
		case 2:
			$('#text1').html(s1);
			break;
		case 3:
			$('#text1').html(s2);
			break;
		case 4:
			$('#text1').html(s3);
			ic = 0;
			break;
		default:
			$('#text1').html(s0);				
		}
	if(ic > 0){setTimeout("redir("+ic+")", 500);}
	return 0;
	}
</script>
</head>
<body>
<div id="text1"></div>	
<script>
redir(ic);
</script>
</body>
</html>


This works but you really should
change the code to use
use setInterval instead of setTimeout

modified on Saturday, July 31, 2010 2:01 PM

GeneralRe: Refresh Div content Pin
Shantanu Gupta 133731-Jul-10 19:34
Shantanu Gupta 133731-Jul-10 19:34 
GeneralRe: Refresh Div content [modified] Pin
daveyerwin1-Aug-10 3:15
daveyerwin1-Aug-10 3:15 
QuestionDisplay image on refresh with link Pin
Dave McCool30-Jul-10 14:39
Dave McCool30-Jul-10 14:39 
AnswerRe: Display image on refresh with link [modified] Pin
daveyerwin30-Jul-10 17:47
daveyerwin30-Jul-10 17:47 
Questionvalidation using jscript Pin
Thanusree Duth29-Jul-10 18:48
Thanusree Duth29-Jul-10 18:48 
Answer[Cross-Post] validation using jscript Pin
Sandeep Mewara29-Jul-10 19:17
mveSandeep Mewara29-Jul-10 19:17 
GeneralRe: [Cross-Post] validation using jscript Pin
Thanusree Duth29-Jul-10 19:20
Thanusree Duth29-Jul-10 19:20 
Questionvalidation Pin
Thanusree Duth29-Jul-10 17:43
Thanusree Duth29-Jul-10 17:43 
Answer[Cross-Post] validation Pin
Sandeep Mewara29-Jul-10 19:16
mveSandeep Mewara29-Jul-10 19:16 
QuestionWell, soneone's gotta go first... Pin
NeverHeardOfMe22-Jul-10 9:14
NeverHeardOfMe22-Jul-10 9:14 
AnswerRe: Well, soneone's gotta go first... [modified] Pin
daveyerwin22-Jul-10 12:33
daveyerwin22-Jul-10 12:33 
GeneralRe: Well, soneone's gotta go first... [modified] Pin
NeverHeardOfMe22-Jul-10 12:45
NeverHeardOfMe22-Jul-10 12:45 
GeneralRe: Well, soneone's gotta go first... Pin
daveyerwin22-Jul-10 13:01
daveyerwin22-Jul-10 13:01 
AnswerRe: Well, soneone's gotta go first... Pin
mmagill04-Aug-10 6:57
mmagill04-Aug-10 6:57 
GeneralRe: Well, soneone's gotta go first... Pin
NeverHeardOfMe4-Aug-10 7:43
NeverHeardOfMe4-Aug-10 7:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.