Unfortunately, I am still getting the same errors:
// Dynamic Date List Boxes
var i;
var today = new Date();
var currentYear = today.getYear();
var currentMonth = today.getMonth();
var currentDay = today.getDate();
var months = new Array();
months[0] = "january";
months[1] = "february"...
Kaht,
My appologies. I'll try to be more considerate.
- MT
Matt Torbin
Center City Philadelphia Macintosh Users Group
http://www.ccpmug.org
ichat/aim: mtorbin_at_mac.com
direct email: mtorbin_at_mac.com
Hey all,
I'm having a lot of trouble with the following:
function buildPage(formName,monthName,dayName,yearName) {
formName = document.formName;
monthName = document.formName.monthName;
dayName = document.formName.dayName;
yearName = document.formName.yearName...
I just realized that the full code above has NOT been posted, so here it is:
// Dynamic Date List Boxes
var i;
var today = new Date();
var currentYear = today.getYear();
var currentMonth = today.getMonth();
var currentDay = today.getDate();
var months = new Array();
months[0] =...
Thanks guys! OK, here's part two. I want to make this exensible so I made the following changes (please note I'm not going to post the full code as it's already posted above. Only the changes will be posted):
<body onLoad="buildPage('myForm','theMonth','theDay','theYear');">
and
function...
Thanks all. Here is the final (working) version:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script>
<!--
function...
Here's the updated code. The selected = true part isn't working yet so any advice would be much apprecited:
function changeDate(selectedMonth) {
alert(selectedMonth);
switch(selectedMonth) {
case "january":
createOptions(31);
break;
case "february":
createOptions(28)...
Ok, I don't know why I didn't think of this last night, but this works SO much better:
<script>
<!--
function changeDate(selectedMonth) {
alert(selectedMonth);
switch(selectedMonth) {
case "january":
createOptions(31);
break;
case "february":
createOptions(28)...
When the user selects the month dropdown the day dropdown will automatically change so that they can't select, say, 11/31/2006 which doesn't exist.
- MT
Hey all,
I'm having trouble with the following code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script>
<!--...
Hey gang,
I am working on the following code snippet:
<cfset journalPrefix = Left(#URL.PubID#,2)>
<cfset journalVolume = Mid(#URL.PubID#,3,2)>
<cfset journalIssue = Mid(#URL.PubID#,6,1)>
<cfif (journalPrefix IS "HR")>
<cfif (journalVolume = 8) AND (journalIssue >= 6)>
<frameset...
The following query gives me an "invalid character" error:
SELECT U.userid,
U.firstname,
U.initials,
U.lastname,
A.addr1,
A.addr2,
A.city,
A.stateprov,
A.country,
A.postalcode,
A.phone
FROM cr_users As U...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.