Posts | Comments

Archive for September, 2007

So I’ve got this bit of code, that I need to fire from a child window (thinking: opener.document… ?).
My select player window
What I’ve got:

  1. A parent window that has two lists: schools/teams and players.
  2. When you select a school/team from the first dropdown, the second select box populates with available players (a bit of AJAX).
  3. Changing schools/teams changes the list in the dropdown.
  4. I have a popup window that allows a user to change the selected school/teams roster.

What I need:

  1. When the selected school/teams roster is updated from the popup, the parent window should reload the select list of players.
  2. I have a function updatePlayerBox() that updates the roster list on the parent page based on the selected school/team ID from the first dropdown.
  3. Can I fire the javascript from the child window, affecting the parent?

UPDATE: I have solved this issue (thanks to people at #javascript in irc)! The solution is to use “opener.function(variable);” which forces the parent to run the chosen function. Simple solution!

Clipring Pliers (Part #35-0009)

What you’re looking at is a set of Clipring Pliers. I need these to get my master cylinder rebuilt on my 1975 Honda CB400 four.

Unfortunately, these damn things have brought bike building to a near standstill as I have no front brake without the master cylinder rebuild. Boo!

I’ve been drinking way too much Coca-Cola. I say that because I’ve been trying to redeem my Coke Rewards through the mycokerewards.com Web site. On the underside of each bottle cap is a code that gives you opportunities to trade in for worthless crap, or get entries into contests like trips away and music hardware.

The reason I say I’ve been drinking too much coke is because my top desk drawer is filled with about 30-40 bottle caps, all gathered over the last few months.

The problem with this is the coke rewards Web site hasn’t been accepting my points towards contest entries. The Web site has allowed me to enter my points, but not redeem them for contest entries (screenshots below).

Points
Denied

How useless can a Web site be when it allows you to gather points, shows you how many points you have, but does not allow you to redeem them? The error I get is basically “Sorry, we see you have 30 points, but you don’t have enough points (3 are needed) to enter this contest. To us, 30 < 3.”

I’m guessing the problem is with their Flash programming, or some error on the backend database. Either way, that’s a shoddy bit of programming. You’d imagine some feedback would make a difference (it hasn’t) or some testing would have remedied the problem (hasn’t as of this posting).

Ridiculous. I’m going to start drinking water, and I’m gonna make damn sure it’s not a Coca-Cola product. That, or I’ll switch to VitaminWater.

So the other night after Dave, Patrick, Kevin and I got done with bike time, and seeing Lifetime, we went for a drink and a bite.

Who did we run into but none other than Dave Mustane of Megadeth.

Dave Mustane and Chad, with the Ace of DiamondsDave Mustane with Dave and Kevin

Now mind you, none of us are big fans of Megadeth. Not that we have anything against the band, we’re just not about to hang out at a show where the majority of the ticket holders haven’t cut their hair since 1986 and have short-shorts to match.

chadedge dot-com is powered by WordPress. Design by Nofie Iman.