R
Robert
Hi all,
I like to use some JavaScript on my ASPX Page. But whatever
I'm trying it doesn't work.
The basic code of the ASPX Page is:
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="ASP_Check.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio
..NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
</form>
</body>
</html>
And now my timer, working within a simple HTML Page:
<html>
<head>
<title>HTMLPage1</title>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function showZeroFilled(inValue) {
if (inValue > 9) {
return "" + inValue;
}
return "0" + inValue;
}
function showTheTime() {
now = new Date
document.form.showTime.value =
showZeroFilled(now.getHours()) + ":" +
showZeroFilled(now.getMinutes()) + ":" +
showZeroFilled(now.getSeconds())
setTimeout("showTheTime()",1000)
}
</script>
<BODY onLoad="showTheTime()">
<BODY>
<center><form name=form>
<input type=text name=showTime size=11><p>
</form></center>
</html>
What is the correct way, to make this timer working on my
aspx Page??
Thanks a lot!!
Rob
I like to use some JavaScript on my ASPX Page. But whatever
I'm trying it doesn't work.
The basic code of the ASPX Page is:
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="ASP_Check.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio
..NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
</form>
</body>
</html>
And now my timer, working within a simple HTML Page:
<html>
<head>
<title>HTMLPage1</title>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function showZeroFilled(inValue) {
if (inValue > 9) {
return "" + inValue;
}
return "0" + inValue;
}
function showTheTime() {
now = new Date
document.form.showTime.value =
showZeroFilled(now.getHours()) + ":" +
showZeroFilled(now.getMinutes()) + ":" +
showZeroFilled(now.getSeconds())
setTimeout("showTheTime()",1000)
}
</script>
<BODY onLoad="showTheTime()">
<BODY>
<center><form name=form>
<input type=text name=showTime size=11><p>
</form></center>
</html>
What is the correct way, to make this timer working on my
aspx Page??
Thanks a lot!!
Rob