Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

smogsy

macrumors 6502a
Original poster
Jan 8, 2008
592
2
i have a text field named : countdown_time & a Set button named called: Set

i basically want user to type in there next Target Countdown Date in the text field and once clicked set the countdown set to the new countdown target.

i have added the function and it created this, as im still learning i would like some help in getting this to work. i think i need to change the ones bolded but i cannot seem to get it to work, thanks a lot.

function setNextCountdownTarget()
{
updateCurrentTime();

var nextEvent;
if (iCalendar != null) {
nextEvent = iCalendar[0].nextEvent();
}

if (nextEvent != null) {
setCountdownTarget({ eventTime: nextEvent.nextOccurrence, eventLabel: nextEvent.summary });
isTargetReached = false;
}
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.