RE: Any Javascript people out there? I need help with select bo xes...

2002-02-22 Thread Dave Babbitt
You'll need to recreate the menu items a la TwoSelectsRelated. -Original Message- From: Yager, Brian T Contractor/NCCIM [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 4:48 PM To: CF-Talk Subject: RE: Any Javascript people out there? I need help with select bo xes... I

RE: Any Javascript people out there? I need help with select bo xes...

2002-02-21 Thread Brian Rosenstock
I think you'd need to do: selectCtrl.options[i].value = i+1; selectCtrl.options[i].text = i+1; instead of just: selectCtrl.options[i] = i+1; Brian Rosenstock -Original Message- From: Yager, Brian T Contractor/NCCIM [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 4:39 PM

RE: Any Javascript people out there? I need help with select bo xes...

2002-02-21 Thread Yager, Brian T Contractor/NCCIM
, February 21, 2002 3:48 PM To: CF-Talk Subject: RE: Any Javascript people out there? I need help with select bo xes... I think you'd need to do: selectCtrl.options[i].value = i+1; selectCtrl.options[i].text = i+1; instead of just: selectCtrl.options[i] = i+1; Brian Rosenstock -Original

RE: Any Javascript people out there? I need help with select bo xes...

2002-02-21 Thread Darryl Lyons
:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 3:48 PM To: CF-Talk Subject: RE: Any Javascript people out there? I need help with select bo xes... I think you'd need to do: selectCtrl.options[i].value = i+1; selectCtrl.options[i].text = i+1; instead of just: selectCtrl.options[i] = i+1

Re: Any Javascript people out there? I need help with select bo xes...

2002-02-21 Thread Jon Hall
May I suggest a slightly different way to do this? I hope I'm not taking the fun out of this, but I've done this one before, and it's easier to just post the code :) Gotta love those snippets. function IsLeapYear(Year) { if(Math.round(Year/4) == Year/4){ if(Math.round(Year/100) == Year/100){

RE: Any Javascript people out there? I need help with select bo xes...

2002-02-21 Thread Sicular, Alexander
*begin script language=javascript function makeDayList(month){ var now = new Date(); //need the month-1 because january=0 in javascript var daysInMonth = 32 - new Date(now.getYear(), month-1, 32).getDate(); //main stumbling block document.monthDay.day.options.length = daysInMonth;