Month: August 2010

  • jQuery roadblock

    jQuery problem:

    <table>
    <tr><td>one</td><td>two</td><td>three</td><td><a class=”foo” href=””>click me first</a></td></tr>
    <tr><td>one</td><td>two</td><td>three</td><td><a class=”bar” href=””>click me second</a></td></tr>
    </table>

    What jQuery would allow me to click on "click me second" and change the color of the text "click me first"?

    It’s a little more complicated than that. The real source has a plus image on the first row. Once you click that I use .hide() to make the plus go away. I create the 2nd row which has a minus image and a plus image. If you click the plus image, it disappears and creates a third row. The minus image, should 1st) cause the immediate plus image above it to appear 2) then disappear its own row. All plus images have a class of "addrow" and minus images have a class of "deleterow" I thought prev() would be doing it but I get nothing. Specifically .prev(‘.addrow’).show();

  • Simplifying Code

    Often I run across code like this:


    <cfif ArrayIsEmpty(Cart.Products)>
         <cfset HasCart = False>
    <cfelse>
         <cfset HasCart = True>
    </cfif>

    Frankly, that makes me twitch a little. This has the same result:


    <cfset HasCart = NOT ArrayIsEmpty(Cart.Products)>

  • Deep Thought

    If my head explodes, who will clean up the mess?

  • See that mountain over there? One of these days…

    Smoky Mountains

    We have these astounding mountains in our backyard. A mere 45 minute drive deposits us in a little peace of Heaven. This past Saturday we took a day with the family and visiting relatives to enjoy nature and splash in the stream at the Chimney Tops picnic area. It was a fantastic day! See Cathy’s pictures.

  • Pivotal

    I supposed yesterday was what some would deem a wake up call. And today, I am changed.

  • False assertion?

    True or false? The context is that all my offsite work is tied to an antique desktop computer at my house.

    If I buy a Macbook Pro my productivity will increase and I will develop iPhone apps.