Head out to http://www.brucegust.com/portfolio/verizon/index_static.php#
There are two ways that you can hide and show the different events on the calendar. One is by using the little keyboard on the left, the other is the list of states that show up when you click on the number to the right of each month.
The problem is this: While for the most part, everything works well, on occasion, you'll click on a "calendar" (which is a series of regions that potentially include a number of states) and when you go to click on a state, because of the "queue" that I've got set up, the resulting collection of layers doesn't make sense.
So what I need to do is figure out how to ensure that every time my user clicks on a region on the keyboard, whatever "queue" has been cached has been reset so it's as if the page has been reloaded.
In other words, these functions:
orth Carolina,.Oklahoma,.South Carolina,.Tennessee,.Texas
for( var state in queue)
$("." + state).show();
...will sometimes prove problematic if the user has been hiding and showing various regions using the keyboard. I believe it's because the "queue" is storing certain "show" values and I need to make sure that doesn't happen.
You'll see how I solved my "calendar" problem by including "$(".CATN,.FL,.CTX,.HGC,.G
hide();" in every state function. This guarantees a clean starting point, as far as the various regions' visibility.
But I can't figure out how to ensure the same kind of clean slate when my user is working with the regions and as a result, sometimes certain states aren't showing up when their corresponding region has been clicked.
What do you think?