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

ASP.NET

 
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 
Hi Friends,
I m having a timer in my page which decreases the time,i want to close the window automatically when the time reaches end.I have used window.close() but it asks me a message whether window should be close or not.Can any one tell me how to close the window automatically.
Here is the 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 Timer Pin
Christian Graus9-Apr-08 2:09
protectorChristian Graus9-Apr-08 2:09 
GeneralRe: Javascript Timer Pin
Jesse Squire9-Apr-08 2:11
Jesse Squire9-Apr-08 2:11 
GeneralRe: Javascript Timer Pin
eyeseetee9-Apr-08 2:18
eyeseetee9-Apr-08 2:18 
GeneralRe: Javascript Timer Pin
Sandilian9-Apr-08 2:24
Sandilian9-Apr-08 2:24 
AnswerRe: Javascript Timer Pin
Ashish Sehajpal9-Apr-08 3:18
Ashish Sehajpal9-Apr-08 3:18 
GeneralUrgent : Data Purging of previous month Pin
rockz...9-Apr-08 1:19
rockz...9-Apr-08 1:19 
GeneralRe: Urgent : Data Purging of previous month Pin
Christian Graus9-Apr-08 2:10
protectorChristian Graus9-Apr-08 2:10 
Generalbatch processing Pin
marygoldg9-Apr-08 0:46
marygoldg9-Apr-08 0:46 
Questionhow do I InvokeScript? Pin
pbeeby9-Apr-08 0:14
pbeeby9-Apr-08 0:14 
AnswerRe: how do I InvokeScript? Pin
Christian Graus9-Apr-08 0:33
protectorChristian Graus9-Apr-08 0:33 
GeneralGoogle Analytics with asp.net multiview control Pin
marky7778-Apr-08 23:06
marky7778-Apr-08 23:06 
Generalcrystal report problem in FireFox and opera Pin
Amr M. K.8-Apr-08 23:04
Amr M. K.8-Apr-08 23:04 
GeneralHttp 400 bad request error Pin
Fuhrer8-Apr-08 22:57
Fuhrer8-Apr-08 22:57 
GeneralRe: Http 400 bad request error Pin
eyeseetee8-Apr-08 23:07
eyeseetee8-Apr-08 23:07 
QuestionAre new ASP session id generated while moving from http to https page(& vice versa)? Pin
dan!sh 8-Apr-08 22:49
professional dan!sh 8-Apr-08 22:49 
AnswerRe: Are new ASP session id generated while moving from http to https page(& vice versa)? Pin
eyeseetee8-Apr-08 23:07
eyeseetee8-Apr-08 23:07 
AnswerRe: Are new ASP session id generated while moving from http to https page(& vice versa)? Pin
N a v a n e e t h8-Apr-08 23:10
N a v a n e e t h8-Apr-08 23:10 

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.