Click here to Skip to main content
15,897,518 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: increase values in a loop Pin
eyeseetee9-Apr-08 3:47
eyeseetee9-Apr-08 3:47 
GeneralRe: increase values in a loop Pin
Jesse Squire9-Apr-08 4:23
Jesse Squire9-Apr-08 4:23 
GeneralRe: increase values in a loop Pin
eyeseetee9-Apr-08 4:47
eyeseetee9-Apr-08 4:47 
GeneralRe: increase values in a loop Pin
Sandeep Akhare9-Apr-08 3:45
Sandeep Akhare9-Apr-08 3:45 
GeneralRe: increase values in a loop Pin
Sandeep Akhare9-Apr-08 4:01
Sandeep Akhare9-Apr-08 4:01 
GeneralRe: increase values in a loop Pin
eyeseetee9-Apr-08 4:06
eyeseetee9-Apr-08 4:06 
GeneralRe: increase values in a loop Pin
Jesse Squire9-Apr-08 3:38
Jesse Squire9-Apr-08 3:38 
QuestionJavascript Pin
senthilsstil9-Apr-08 2:29
senthilsstil9-Apr-08 2:29 
Hi Friends,
I m decresing the time using javascript user defined function startTimer1(), I am calling that function in body load event Its working fine but user clicks server button the time is decreasing very fast.
My logic is right.i dont know where I call that function.

This is my coding

function startTimer1(h,m,s)
{
if(document.getElementById('txt').innerHTML=="00:00:00")
{
alert("Your time is Over,Now the Application is going to close");
//self.close();
window.close();
return false;
}
var today=new Date();
if(h=="0" && m=="0" && s=="0")
{
h=00;
m=01;
s=00;
}
else
{
if(s=="00")
{
s=59;
if(m=="00" && h!="00")
{
h=parseInt(h)-1;
m=59;
}
else if(m!="00" && h=="00")
{
m=parseInt(m)-1;
}
else if(m!="00" && h!="00")
{
m=parseInt(m)-1;
}
else if(s=="00" && m=="00")
{
if(h!="00")
h=parseInt(h)-1;
}
}
else
s=parseInt(s)-1;
}

// add a zero in front of numbers<10

h=checkTime(h);
m=checkTime(m);
s=checkTime(s);
document.getElementById('txt').innerHTML=h+":"+m+":"+s;
t=setTimeout('startTimer1('+h+','+m+','+s+')',1000);
}
function checkTime(i)
{
if (i<10)
{
i="0" + i;
}
return i;
}
GeneralRe: Javascript Pin
eyeseetee9-Apr-08 2:42
eyeseetee9-Apr-08 2:42 
GeneralRe: Javascript Pin
senthilsstil9-Apr-08 2:55
senthilsstil9-Apr-08 2:55 
GeneralRe: Javascript Pin
eyeseetee9-Apr-08 2:57
eyeseetee9-Apr-08 2:57 
GeneralQuestion Pin
nithydurai9-Apr-08 2:27
nithydurai9-Apr-08 2:27 
GeneralRe: Question Pin
eyeseetee9-Apr-08 2:40
eyeseetee9-Apr-08 2:40 
GeneralRe: Question Pin
Ashish Sehajpal9-Apr-08 4:07
Ashish Sehajpal9-Apr-08 4:07 
Generalnetwork socket programming -connectivity issues Pin
vilasinivils9-Apr-08 2:05
vilasinivils9-Apr-08 2:05 
GeneralDynamic Control Events not Fireing Pin
André Stroebel9-Apr-08 1:34
André Stroebel9-Apr-08 1:34 
GeneralRe: Dynamic Control Events not Fireing Pin
Jesse Squire9-Apr-08 1:42
Jesse Squire9-Apr-08 1:42 
GeneralRe: Dynamic Control Events not Fireing Pin
André Stroebel9-Apr-08 1:53
André Stroebel9-Apr-08 1:53 
GeneralRe: Dynamic Control Events not Fireing Pin
Jesse Squire9-Apr-08 2:07
Jesse Squire9-Apr-08 2:07 
GeneralRe: Dynamic Control Events not Fireing Pin
Christian Graus9-Apr-08 2:08
protectorChristian Graus9-Apr-08 2:08 
GeneralRe: Dynamic Control Events not Fireing Pin
Jesse Squire9-Apr-08 2:19
Jesse Squire9-Apr-08 2:19 
GeneralRe: Dynamic Control Events not Fireing Pin
André Stroebel9-Apr-08 2:42
André Stroebel9-Apr-08 2:42 
Generalvs 2005 and windows vista untimate Pin
AnhTin9-Apr-08 1:27
AnhTin9-Apr-08 1:27 
GeneralRe: vs 2005 and windows vista untimate Pin
Jesse Squire9-Apr-08 1:54
Jesse Squire9-Apr-08 1:54 
QuestionJavascript Timer Pin
senthilsstil9-Apr-08 1:25
senthilsstil9-Apr-08 1:25 

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.