Posted on 2 Comments

Parenting – nothing harder

I woke up late this morning. Amy and I would have to leave in 2 minutes to catch the bus. Wasn’t going to happen but getting to school on time in the carpool would be no problem. Well, one would think. Amy and I could not agree on her outfit. Need a tough negotiator? Send in a 5 year old! My patience ended up being tried and lost. I was outwitted by a child and my primordial reaction was to get gruff, raise my voice, and shove her to the car. Bad dad. Of course, she needed clothing so I tossed her anything and declared, "go ahead. Look like a clown." Certainly not a tv dad today! Fortunately, Mom rose from the dead, fighting back her nausea, to save Amy. She gently helped her get attired in clothing Amy liked. She wiped her tears, gave her a hug, scowled at me, and we were on our way. Amy arrived at school 16 minutes late which in the grand scheme of things was not worth one ounce of the stress I caused this morning. Coincidentally, one of her teachers was in the office and cheerfully greeted her. After asking Amy if she was ready for fun gym, she escorted her to class. Please have a great day Amy. I’m going to start mine over.

Posted on 1 Comment

Today’s Technical Challenge

This one sounds pretty simple. I bet you can’t do it! (That is coming from the guy who claims anything can be done…I will find a way!).

The challenge: Part 1- Write a piece of JavaScript that pops an alert box with the message "You left!" when focus is lost on the browser. This means that if someone is looking at the webpage in Firefox and then switches to another webpage in a different tab, different window, or goes to a different application altogether (say Microsoft Word or Internet Explorer), then the alert box should appear. Any loss of focus to the active webpage makes the alert popup.

The challenge: Part 2- Write a piece of JavaScript that pops an alert box with the message "You returned!" when focus is returned to the browser. This means if someone was checking their email, using Internet Explorer, or was in a different Firefox tab, when they return to your webpage the alert box pops up.

The JavaScript for this challenge should work in both Firefox and Internet Explorer. The user should be able to repeatedly remove focus and return to focus and see both messages multiple times.

Good luck!

References

  • Mozilla.org reference to window.onblur Using their code example works differently in Firefox and Internet Explorer. In Firefox, the event fires twice meaning when I move away from the window, I get two alert boxes. In Internet Explorer the event fires once. Returning focus to the window and leaving against does not cause a blur event. So this appears to work once per loading of the window and not through repeated lost focus and refocuses.
  • Incorrect behavior of window.onblur event under IE and a workaround I need to test this in IE7
Posted on Leave a comment

We asked to be heard; tonight is our chance!

Do you care for the future of education in Knox County? We have asked that the citizens be heard in choices like rezonings and choosing a school superintendent. They are now willing to listen!

Knox County residents are invited this week to share their suggestions on what characteristics the school system’s new superintendent needs.

And the school board has been told to stay away.

[Source, Knoxnews.com, Residents’ input sought on superintendent]

I personally think the superintendent needs to come from outside of Knox County and maybe far from TN where local politics and good ol’ boy relations will not be an influence. I want someone making decisions that are right for our children and not because of politics or helping a buddy out.

Don’t forget to attend the superintendent search forums tonight (11/26) at either Austin East or Central High School auditoriums, beginning at 7:00 pm.

Additional forums will be held Tuesday, 11/27/07, at South Doyle and Bearden High School auditoriums, also at 7:00 pm.

[Source, Knoxviews.com, ]

This is very important! Make the time to voice your opinion please.