asked on
ASKER
<meta charset="utf-8_danish_ci">
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(function() {
$('#datepicker').datepicker({ dateFormat: 'yy-mm-dd' }).val();
});
</script>
</head>
And the code that decides whether the pick a date form element gets shown is dependint on a variablebeing present in the data being viewed.Projektdeadline = Request.Form("Projektdeadline")
If Opgavetype = "Projekt" Then
Vis_Deadline = "<tr><td><b>Projektdeadline</b><br><input type=text name=Projektdeadline id=datepicker value=" & Projektdeadline & "></td></tr>"
Else
Vis_Deadline = ""
End if
And finally the insert command on the recieving asp page: DATABASE.execute("UPDATE " &_
" Table " &_
" SET " &_
" Projektdeadline = '" & Projektdeadline & "'," &_
" WHERE " &_
" Id = '" & Id & "'" )
Projektdeadline = Year( Projektdeadline ) & "-" & Month( Projektdeadline ) & " - " & Day( Projektdeadline )
DATABASE.execute("UPDATE " &_
" Table " &_
" SET " &_
" Projektdeadline = '" & Projektdeadline & "'," &_
" WHERE " &_
" Id = '" & Id & "'" )
ASKER
ASKER
ASKER
ASKER
Active Server Pages (ASP) is Microsoft’s first server-side engine for dynamic web pages. ASP’s support of the Component Object Model (COM) enables it to access and use compiled libraries such as DLLs. It has been superseded by ASP.NET, but will be supported by Internet Information Services (IIS) through at least 2022.
TRUSTED BY