"Murphy was an optimist!"
Rubber and Rain September 8, 2010 7:18 am
Posted by Doug McCaughan in : Daily LifeChanging a tire in the rain. This ought to set the mood for the day. Actually the air feels great!
add a commentjquery challenge of the day September 7, 2010 6:19 pm
Posted by Doug McCaughan in : CSS, Daily Life, JavaScript, jQuery, Programming, TechnologyAnd now for something completely different…
Let’s say you have a table that could have infinite rows. The table has an id but none of the other elements (ie. we won’t be traversing by id). The column to the furthest right of the row has an anchor tag in the for of an <a href> There are no other anchors on that row. What I want to do is when the anchor tag is clicked, have the <a href> text in the row above the clicked on turn bold and only that <a href>. Sample table:
<table id="tbl">
<thead>
<tr>
<th>col 1 label</th>
<th>col 2 label</th>
</tr>
</thead>
<tbody>
<tr>
<td>one</td>
<td>sometext <a class="tt" href="#">link</a></td>
</tr>
<tr>
<td>two</td>
<td>moretext <a class="tt" href="#">link</a></td>
</tr>
<tr>
<td>three</td>
<td>differenttext <a class="tt" href="#">link</a></td>
</tr>
<tr>
<td>four</td>
<td>othertext <a class="tt" href="#">link</a></td>
</tr>
</tbody>
</table>
So, if I click the link in row three, I want the text "link" in row two to become bold. This is using jquery and traversing this is kicking me hard.
10commentsI have a crush on her September 7, 2010 10:11 am
Posted by Doug McCaughan in : Cathy, Love, Philosophy, PoetryMy love for Cathy is so large
That in trying to carry it
I find myself crushed.
Stone me September 7, 2010 9:32 am
Posted by Doug McCaughan in : Philosophy, PoetryI feel like I need medication
I need tranquilization.
State of Me September 7, 2010 6:10 am
Posted by Doug McCaughan in : Daily Life, Health, MentalI’m so stressed that I’ve maintained a headache for about two weeks. There needs to be some serious downtime in the near future.
I cannot get my inner voice to be silent. I wish I could turn off my brain.
add a commentBest Wife in the World September 6, 2010 9:16 pm
Posted by Doug McCaughan in : Cathy, Daily Life, FamilyCathy really knows how to lift my spirits. I’m so fortunate to have her as my best friend and life long partner!
add a commentWalking Dead September 6, 2010 3:11 pm
Posted by Doug McCaughan in : Philosophy, PoetrySomewhere along the path
I died
But did not know enough
To stop walking.
From the mouths of babes September 6, 2010 2:15 pm
Posted by Doug McCaughan in : Daily Life, Evan, Family, From the mouths of babesEvan, 5 years old: "A rainbow is my favorite color."
add a commentToday is Labor Day September 6, 2010 12:23 pm
Posted by Doug McCaughan in : Daily LifeErgo, I labor.
add a commentOf Grasshoppers September 6, 2010 10:54 am
Posted by Doug McCaughan in : Of Grasshoppers, PhilosophyStudent: I am alone.
Master:
Living large September 5, 2010 10:17 am
Posted by Doug McCaughan in : Philosophy, PoetryI will do everything big!
For no success should go unnoticed
No voice unheard
No risk taken without chance of harm
No conditional love
No joy mundane
And no mistake can ever be small.
It’s a gorgeous day outside! September 5, 2010 9:10 am
Posted by Doug McCaughan in : Daily LifeSo I think I’ll spend this holiday weekend Sunday in the dusty windowless basement writing code.
add a commentLet’s talk SEO and domain names September 1, 2010 7:50 am
Posted by Doug McCaughan in : TechnologySay for more than half a decade (really its been a decade) Cathy has blogged as DomesticPsychology.com and she has. Let’s say on a whim she decides she would rather be blogging as CathyMcCaughan.com (in reality she hasn’t..this is simply a working example). Currently http://CathyMcCaughan.com forwards to http://domesticpsychology.com/. To complicate things, let’s say they are registered at 2 different registrars so DNS is handled by two different organizations.
Many options exist for moving a domain name. What is the best way to make http://cathymccaughan.com/ the primary url for Cathy’s website instead of http://domesticpsychology.com/ without losing the search engine rankings or readership and without creating broken links?
3comments