Blog

Some of my recent posts and ramblings.

Form Savior – a jQuery plugin to prompt save of unsaved changes in form

I was tasked to find a way to prevent accidental loss of information if the user navigated away from the page after changing the form. This article from 4GuysFromRolla helped me get started on the solution. But it required a … more


IE caching ajax responses

Another one from IE. It never runs out of new ways to screw our lives. On one of our sites, the client kept coming back saying the person they just entered doesn’t show up in a dropdown list which was … more


Noise words problem in SQL Server Full Text Search

SQL Server full text search has some interesting behavior. There are a bunch of words that are considered noise words. These words include

1|2|3|4|5|6|7|8|9|0|$|!|@|##|$|%|^|&|*|(|)|-|_|+|=|[|]|{|}|about|after|all|also|an|and|another|any|are|as|at|
be|because|been|before|being|between|both|but|by|came|can|come|could|did|do|does|each|else|for|from|get|got|has|had|he|have|her|here|him|
himself|his|how|if|in|into|is|it|its|just|like|make|many|me|might|more|most|much|must|my|never|now|of|on|only|or|other|our|out|over|re|
said|same|see|should|since|so|some|still|such|take|than|that|the|their|them|then|there|these|they|this|those|through|to|too|under|up|
use|very|want|was|way|we|well|were|what|when|where|which|while|who|will|with|would|you|your|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z'

If they exist in the search term, they are stripped out and sql … more


Highlighting the current page link using jQuery

Here is a simple code snippet to highlight the current page text using jQuery. You can change the selector to be global as well, just use $("* a")

$("#navigation a").each(function(){
    if (window.location.pathname === $(this).attr('href')) {
        $(this).addClass("current");
        $(this).parent().addClass("current");
    }
});
more