By Will Strohl on 11/25/2009
The other morning, I was already running late for work. I noticed the gas gauge was at empty, but that I not completely unusual for me. I am very good at knowing how much gas I have, having only ran out of gas one other time in my life. Stuck In Front of a School This particular morning, I was on my way to the gas station when I chugged to a stop just feet away from the entrance of an elementary school, just as parents were beginning to bring their kids to school, on an already busy road that led to a major toll road. I immediately whipped out my roadside assistance card and called them to have someone bring gas to me. I was still 2-3 miles away from the gas station, and being in front of a school, it was not a good idea to leave my truck there. Yes… I own a truck. I used to have a relevant need to own a truck over a more fuel-friendly vehicle. I no longer need a truck, but having another car payment is not an option at this time either. :( After a few moments of phone options...
|
By Will Strohl on 11/25/2009
Here is another blog by request. I blogged not too long ago about using jQuery to change the default option in a listbox. As a result, a comment was added that asked me how to change the selected option using only the text, and not the value. Here is the answer! Doing this is actually quite simple, but may not be straightforward at first. In order to demo this, we need a listbox (select, combo box, drop down list, etc.). Here is the one I am using for my example: select id="cboList">
option value="val1">Text1option>
option value="val2">Text2option>
option value="val3">Text3option>
option value="val4">Text4option>
option value="val5">Text5option>
option value="val6">Text6option>
select>
Just a simple drop down...
|
By Will Strohl on 11/25/2009
There are some cases where a full-blown web service or WCF implementation is just too much for the project you’re working on. In those times, I often resort to building a similar implementation using an ASP.Net handler to accepts posts, and return data, just like a standard web service would do. This is not new. We’ve been doing similar things in Classic ASP and PHP for some time now. I like doing this, because it’s quick, easy, and usually does the job better than a full-fledged web service when this solution fits the project requirements. Otherwise, this is just stupid! ;) For my example, I am going to assume you need a handler or web service to return JSON data for an AJAX request, much like you’d need for a jQuery AJAX call. In its simplest form, JSON data that is returned as a result of an AJAX request looks something like the example below. The collection name and values will vary from application to application. Keeping...
|
By Will Strohl on 11/18/2009 |
By Will Strohl on 11/16/2009 |
By Will Strohl on 11/13/2009
With Antonio Chagoury visiting recently, and the last code camp in Florida wrapping up for the year, I’ve been talking to many Microsoft MVP’s. As a result of these recent conversations I’ve been having, I was curious… How many Microsoft MVP’s are there in the DotNetNuke® community? As it turns out, the answer might surprise you. I know it did me! There are a couple of obvious people in the community that immediately pop into my head when I thought about this, and that’s Shaun Walker and Nik Kalyani. But can you believe that there’s actually 18 MVP’s active in the DNN community?! That should allow you to rest easy, knowing that when you have a problem, there’s several MVP’s out there helping to create and contribute to DNN. At least that’s my count. The number might be higher, as I might have forgotten some names. ...
|
By Will Strohl on 11/12/2009
This past Tuesday was a number of things… The Marine Corps birthday, the release of Modern Warfare 2, and it was of course the day of our November meeting for the Orlando DotNetNuke® Users Group ( ODUG). There were many challenges coming into this meeting, which each could possibly ruin the entire meeting. However, all of those challenges were successfully met and overcome.  So… What Challenges? This meeting had a lot going...
|
By Will Strohl on 11/6/2009 |
By Will Strohl on 11/5/2009 |
By Will Strohl on 11/4/2009
This blog entry is a response to a request from an earlier blog entry, where I used jQuery to search an HTML table. The request as I understand it is this. How can I allow the website visitor click on a row in a HTML table, and relocate that row to the top of the table? Even though I cannot think of a use for this functionality myself, I was intrigued. So here is how I accomplish that task. First of all, I needed a table to test this on. I used the example from the aforementioned post, as shown below: table id="tblCustomer" cellspacing="0" cellpadding="2" border="1" style="width: 500px;">
tbody>
tr id="rowHeader" style="font-weight: bold;">
td>Firsttd>
td>Lasttd>
td>Addresstd>
td>Citytd>
td>Statetd>
tr>
tr>
td>Johntd>...
|