Tagged Posts

The following is an update email that went out to everyone who has donated to my LIVESTRONG fundraising. Wait, you haven’t donated yet? That’s okay, there is still time, head on over to my Philanthropy page and get started.

<begin email>

I wanted to send out a quick thank you to everyone who has donated to my ride for the 2012 Team LIVESTRONG Challenge in Davis. With your help I have already surpassed 50% of my initial goal for fundraising for the ride, I will likely be raising that goal to a larger amount here over the next few months, due in part to your very kind donations.

Year to date riding

I've been riding a lot here over the past couple of months as I try to get my body prepared for a 100 mile bike ride. I've been able to ride three, sometimes 4 days a week just about every week in 2012. In 2011 I rode around 580 miles total for the year, so far this year I am up to 458 miles, I should hit 500 before the end of the month, and if I keep this pace up (it will likely just increase) I should easily exceed 1000 miles before the Challenge on 6/24/2012.

Fundraising efforts

As part of my efforts to increase my fundraising for LIVESTRONG I have been making some changes to the Philanthropy page of my website (http://www.chrishammond.com/philanthropy.aspx) and have decided to include a list of everyone who has donated.

Your name in lights (get a link)

As an added bonus for donating, I am also adding a link with your name, pointing to the website of your choice (within reason of course). Please feel free to email me a link that you would like associated with your name on the Donor list and I will gladly add it to the site.

You've been ranked

On that Donor list I am currently listing of the donors in descending order of the donation amounts. If you are at the top, that's because you've donated the most. If you want to move to the top? Well, you could always donate more.

If you would rather not be included in that ranked list, or even included in the list of donors at all, please let me know and I will remove your name.

Tell a friend

Now that you've donated, perhaps you have a friend who might be interested in donating? If so, send them to the following website: http://www.chrishammond.com/philanthropy.aspx

Future emails

If you would rather not be included in future status emails please let me know, otherwise I will occasionally send out emails like this updating everyone on how things are progressing.

Once again, thank you for taking the time and effort to donate to the cause, no matter how little or big your donation is it is all greatly appreciated.

Chris Hammond

While spending a bit of time this weekend working on a new color scheme for ChrisHammond.com I came across the need to be able to add a hyperlink to an image (html IMG tag) using jquery. Why would I want to do that? Well, to be honest I didn’t want to go in and modify the “skin” on my DotNetNuke site, but I did want to create a link on the “HeaderGraphic” image in the skin. Originally that image didn’t link anywhere, now, as I am working on fundraising for the The LIVESTRONG Challenge Davis even on June 24, 2012, I wanted to link that graphic to my “Philanthropy” page.

Doing this in jQuery is rather easy to do assuming you have a way to target the element, in this case I can target the .HeaderGraphic class (part of the MultiFunction skin for DotNetNuke).

Here is the sample code for adding a hyperlink to an image using jQuery.

<script>
    $(document).ready(function(){
        $('.HeaderGraphic').wrap( 
                 $('<a>').attr('href', '/philanthropy.aspx')
        );
    });
</script>

In order to safely embed this into a DotNetNuke page I’ve added it into the Header setting in the Module Settings for one of the modules at the bottom. That particular module is configured to Display On All pages using the module settings.

If you found this code to be help, I ask that you please donate to my cause on the Philanthropy page. Donate what you feel is appropriate.

RSS URL

Chris Hammond

Chris Hammond is a father, husband, leader, software developer, photographer and car guy. Chris focuses on the latest in technology including artificial intelligence (AI) and has spent decades becoming an expert in ASP.NET and DotNetNuke (DNN) development. You will find a variety of posts relating to those topics here on the website. For more information check out the about Chris Hammond page.

Find me on Twitter, GitHub and LinkedIn.