A* Search Algorithm in JavaScript (Updated)

Get all the updated source code from github.

Read more →

bindWithDelay jQuery Plugin

Sometimes, I want to have a JavaScript event that doesn't fire until the native event stops firing for a short timeout. I've needed to use that pattern in almost every project I have worked on.

Read more →

Make Table Rows Sortable Using jQuery UI Sortable

I wrote an article, Make Table Rows Sortable Using jQuery UI Sortable on the Foliotek Development Blog about a problem that I ran into when trying to set up a basic sortable table using jQuery UI. The columns would collapse down once the dragging began.

Read more →

C# Tips - Type Conversion with "as" and "is"

I had used C# for at least a year before I found out a couple of nice shorthand ways to convert types. These are the is and as expressions, and using them can help make your code more readable.

Read more →

Keep Original Variable State Between Event Binding and Execution

I wrote an article on the Foliotek Development Blog about saving the state of a variable inside a closure that is not executed immediately. For example, functions passed into event binding or setTimeout(). Here is a quick rundown of the problem and the solution (using the jQuery library).

Read more →