Andy Taylor

Results 8 comments of Andy Taylor

``` javascript hourNode.addEventListener("click", addSelectedClass, true); hourNode.addEventListener("click", hideOrShowEmailButton, true); hourNode.addEventListener("click", selectOtherCellsInRow(index, selectedIndex, hourNode), true); ``` `selectOtherCellsInRow` doesn't run on click. It's still happening on the interval timer. Where as `addSelectedClass` and...

They should be. I had to pass them as arguments to make it work inside the function.

Thanks @samcambridge `selectedIndex = undefined;` until this runs: ``` javascript function addSelectedClass() { this.classList.add("selectedhourforsharing"); selectedIndex = index; } ``` Which is run by this on click: ``` javascript hourNode.addEventListener("click", addSelectedClass,...

Thank you @levibuzolic that makes a lot more sense. Unfortunately I still haven't got it to work. I tried: ``` javascript function selectOtherCellsInRow(index, selectedIndex, hourNode) { if (index == selectedIndex)...

@kfdm Sorry I need to turn on email notifications again. It's a nice idea. Originally I only used query strings to set cities. Then switched to cookies. But you could...