With jQuery and ASP.NET MVC Almost Radio Buttons


The Silicon Valley Code Camp web site used jQuery to do a lot of the page markup manipulation.  Behind the scenes of course is ASP.NET MVC5 which has a lot of helper methods for things like Check Boxes and Radio Buttons.  General purpose methods are nice (until they are not).  I’m building a more sophisticated “Opt-Out” for the code camp site and have created a choice where the user can say they want “All Emails” or “Critical Emails”.  I did not want to have a third choice for “No Emails” since say they don’t want all and they don’t want critical implies they don’t want any.  Also, it does not make sense for the user to say they want both “All” and “Critical”. It’s a one or another, just like radio buttons. Since I could not use … Continue Reading

Microsoft Surface Pro 3 Mini Review


I just went over to a Microsoft store here in San Jose, California and tested and did a review of a Surface Pro 3 for about 30 minutes.  As the owner of a Microsoft Surface Pro 2, I was quite curious about the new model from Microsoft.  I’ll wrap up my thoughts quickly in bullet points.   The Trackpad on the keyboard works well (huge improvement) The screen is bigger, but still pretty small (see picture below for comparison) It feels a little less heavy but not that much to me The keyboard itself seems to type better I love the variable position built in stand Personally, I’m not a big pen user so though I understand the pen technology is much improved, it did not do much for me.  Like I mention above, the keyboard is much … Continue Reading

A Simple Prompt Modal Dialog for JQuery JavaScript


Do you hate what the basic alert(‘hello there’) looks like in JavaScript to your viewing public?  All I want is a simple modal prompt dialog that works with JQuery.   For a long time, I’ve been looking for a simple to use replacement.  It seems like when I scour the internet, I run into lots of people telling you simple ways to use JQueryUI’s Dialog.  For example, when you search “jquery alert simple” you get tons of hits.  This one: http://stackoverflow.com/questions/5355178/jquery-ui-dialog-on-the-fly-without-div It seems the highest voted one says do this: $("<div>My div content</div>").dialog(); Way down in the comments of the SO post, zod posts “What about prompt” with a links … Continue Reading

In JavaScript, ‘true’ == true is false, truthy truth

Somehow, I had thought that in JavaScript that if I said ‘true’ == true that a string conversion to bool would happen on the left side of the comparator and that the == instead of the truthy === would do a type conversion for me. Apparently not. So, for now on, all my JavaScript will look like this when I’m saving off a boolean that I collect in string form. var donationConfirmed = $('#RegisterUserInfoLoggedIn_DonationConfirmed'). val().toLowerCase() === "true"; Happy to hear why I’m wrong here but I don’t think I am. … Continue Reading


Get every new post delivered to your Inbox

Join other followers: