September 2007 Archives
Over a month and $1800 later, my car is back from the shop. It took a long time, mostly because the shop I go to had their annual vacation right when my car broke (wonderful timing on my part), and a lot of money, but in the end I think it's worth it, the car drives like a dream.
After having the front-left control arm break, I was rather freaked out about other parts failing, so I had them redo the entire suspension while it was in the shop (something I was planning on doing anyways, and indeed I already had all the parts to do it). New shocks and struts, new springs, new control arms and new sway bars (a birthday gift from Terry). I also had the new rims (17" Volvo OEM off a 2004 V70R) and new tires put on.
There's not a lot left to do to the car, mechanically speaking. I'll need a new exhaust early next year, mostly because the current one is pretty old and getting rusty, I don't expect it to last past the Winter.
After having the front-left control arm break, I was rather freaked out about other parts failing, so I had them redo the entire suspension while it was in the shop (something I was planning on doing anyways, and indeed I already had all the parts to do it). New shocks and struts, new springs, new control arms and new sway bars (a birthday gift from Terry). I also had the new rims (17" Volvo OEM off a 2004 V70R) and new tires put on.There's not a lot left to do to the car, mechanically speaking. I'll need a new exhaust early next year, mostly because the current one is pretty old and getting rusty, I don't expect it to last past the Winter.
A friend and former co-worker of mine asked me how you'd go about accessing data on a child window in the parent window in JavaScript. Apparently after extensive searching, the answer wasn't apparent, with most examples showing you how to access data on the parent window from the child. After giving him a solution, I decided to post the example here:
On the parent, make a global variable that points at the child. In this case I've called it "myChild". When you create the child window, you should be able to access anything on that page by calling "myChild.document". You can also use this to set values on the child window.
Have a better solution? I'd love to hear it :)
parent.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
var myChild;
window.onload = function()
{
myChild = window.open(
'child.html',
'Child Window',
'status=0,toolbar=0,menubar=0,resizable=0,scrollbars=0,height=200,width=300'
);
}
</script>
</head>
<body>
<input type="button" value="What's the child saying?" onclick="alert('Child Window Says: ' + myChild.document.getElementById('saying').value);" />
<input type="button" value="Shut the child up!" onclick="myChild.document.getElementById('saying').value = '';">
</body>
</html>child.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<input type="text" id="saying" value="something" />
</body>
</html>On the parent, make a global variable that points at the child. In this case I've called it "myChild". When you create the child window, you should be able to access anything on that page by calling "myChild.document". You can also use this to set values on the child window.
Have a better solution? I'd love to hear it :)
The University of Wisconsin-Madison Football team started the season (after their first win, I think preseason ranking is useless...just look at Michigan) ranked 5th in the nation. The following weekend they won, and dropped in rank to 7th. This past weekend they won again, and dropped in rank to 9th. What gives? I guess the message is "you won...but you gotta win better." I wish they'd just scrap the opinion-based ranking system and allow teams to fight it out based on wins, like all other sports.
