Biggs' Zone

A Geek's Cogitations, Conjectures and other Cortical Experiences

Snippets: [jQuery] Highlight Rows with Checkbox

It has been a while since I have posted a new jQuery snippet, mostly because I only get to play with jQuery once in a while (though I wish I could use it more). Recently I had to create an administration page for deleting multiple rows of data. I presented the data in a gridview using checkboxes as the control for selecting which items will be deleted. I wanted to make it clear which items were going to be deleted so, using jQuery, I wrote the following snippet to accomplish what I wanted.

Obviously you will need to define a CSS class called “highlight”. I think the best thing about this snippet of code is that it will work if you are using a standard HTML table to organize your data or you are using a GridView object in ASP .NET. This snippet will also ignore the row that contains the “Select All” checkbox; for my purposes the select all checkbox was in the header of the table/grid.


$('#SurveyGrid input:not(#selectAll)').click(function () {
if ($(this).attr("checked") == true) {
$(this).parent().parent().addClass('highlight');
} else {
$(this).parent().parent().removeClass('highlight');
}
});

I have posted this code on snipplr.com (as usual).

Biggs On: Why Microsoft Is Dying

Despite the fact that I make my living providing Microsoft solutions using .NET, many know that I have never been a big fan of Microsoft. I stated that because I want to be upfront about my past feelings and that I am going to try not to let those feelings influence this topic. I am going to discuss this based on my interpretation of the evidence I see in the industry today. I think that Microsoft is no longer a leader but frantically playing catch-up instead.

Windows OS – It took Microsoft 7 versions to finally get Windows right (with Windows 7) and now they are going to screw it all up with Windows 8. While I have heard that the latest beta build of Windows 8 is much more stable, people are still struggling with its interface. It’s not very intuitive on a desktop which is what I had been saying since the beginning. It’s the Microsoft curse that every “even” version of Windows is garbage. Unfortunately for Microsoft the OS is the only thing they have left in the PC market that may be generating revenue, though unfortunately for us Windows is the only OS we can buy for a PC. Although, more and more people are switching to Apple.

The MMO Times: The Power of The Force Compels You!

Issue 34

Hello Again, Gamers! As the excitement of Diablo III finally quells, the MMO world suffered some disturbing news this past week. All of the employees at 38 Studios have officially been laid off as more drama continues to emerge from Curt Schillings disastrous foray into MMO development. Bioware also announced that they had to layoff several developers and will be performing server merges, however this does not spell doom for SWTOR. There are still 1.3 million active players and obviously layoffs are just part of the business (Blizzard did the same thing a few months ago).

Despite these unfortunate events, there is still something to be excited about for World of Warcraft and SWTOR players. More interesting changes are coming out from the recent beta build for MoP and the SWTOR devs (that are still employed) have more details of what to expect in the 1.3 update. There is also some more exciting news for RIFT fans and anyone excited about the upcoming Marvel Heroes MMO.

Also, next week is E3 (June 5 – 7) so hopefully we will get some more exciting news about our favorite games (current and future)! Enjoy!

Diablo III Revisited

A couple weeks ago I posted my initial impressions of Diablo III and I prefaced by saying that I potentially could be writing a retraction, however that will not be the case. I feel now that I have actually spent sufficient time playing Diablo III through a couple of the Acts and I am going to stick with my original assessment.

Don’t get me wrong, I do think Diablo III is a fun game. I have played a Monk into Act III now and I have played a Demon Hunter through a couple of levels. I have caught myself trying to click-to-move when switching to another game after playing Diablo III, it was quite humorous. I haven’t experienced any of the server issues others have complained about and I have had minimal lag issues. I am also coming to D3 after playing WoW for over six years and I have never played any of the previous iterations of Diablo nor any other click-to-move MMO/game. Perhaps my perceptions are skewed as a result.

Biggs On: The House Finale

After eight seasons, Hugh Laurie is hanging up the cane. While I know that all the characters are fictional and that Princeton Plainsboro doesn’t exist, House was still a pretty big part of my reality. The cast and crew of House have made amazing television over the past eight years and I wish all of them luck in their new projects. I intend to keep close tabs on a few of them to see where they go to next. I was very upset when I heard that FOX was not going to renew House for another season and I’m still pretty upset with FOX because I feel like they forced Hugh Laurie to end the series so FOX could free up the time slot. Why do that to such a successful series, especially when we barely got to know Park and Masters.

At any rate, this post is about my impressions of the finale and not whining about another great showing getting “FOXed”.

The MMO Times: Inferno Edition!

Issue 33

As the finish line for the race for the Inferno World’s First draws closer and the Diablo III hype begins to wane, we are now looking at what new content to look forward to in upcoming patches and expansions. This issue we have more details about the upcoming 1.3 patch for SWTOR, more MIsts of Pandaria goodies and some Warhammer news.

It is also important to note that in a couple of weeks is E3 (June 5-7) and there is usually something of interest that will be revealed for the MMO genre. Perhaps Gazillion’s recent press release (which you can read about in this issue of MMO Times) will be a prelude of what might be at E3 this year.

Page 156 of 181

Powered by WordPress & Theme by Anders Norén