This blog has moved!
Visit Marky Moo's Blog

Sponsor: MP3 music download

Monday, August 09, 2004

Arrgghh!

I've just spent about 20 mins looking for an error in some code. After all that I ealised I'd missed a curley brace:

function cancel(mode)
{
if(mode == "new")
window.location.href = 'action.php?mode=cancel-new';
} else {
// mode == "existing"
window.location.href = 'action.php?mode=cancel-existing';
}
}


instead of

function cancel(mode)
{
if(mode == "new")
{
window.location.href = 'action.php?mode=cancel-new';
} else {
// mode == "existing"
window.location.href = 'action.php?mode=cancel-existing';
}
}


I think my mind must be distracted. But then I've been working since about 10 AM ish, so it's been quiet a long day ;-)