alkampfer on March 31st, 2009

Sometimes it is needed to change an image into another image, if possible with a smooth transiction. There are a lot of solution to the problem, but one of the simpliest approach is using the background of a containing div. Here is a possible and really raw solution

(function($) {

$.fn.transictionto = function(options) {
[...]

Continue reading about Transition between images in jQuery

alkampfer on March 31st, 2009

Sometimes I need to generate insert statement, taking data from a starting database. Suppose you need to create sql installation scripts to create a database from scratch, quite often you need also to insert some initial data into some tables.
Sql server management studio does not provide a simple way to take a table and script [...]

Continue reading about Generate insert data for sql server tables

alkampfer on March 31st, 2009

Some time ago I posted a link about a user type to store list of strings in a single database field. In a project of mine I have another usertype very similar, that stores list of integers into a single string database field in a # separated value, like #1#8#23# (note that the character # [...]

Continue reading about Querying NHibernate user type with HQL or criteria

alkampfer on March 28th, 2009

One of the most interesting feature of JQuery is its extendibility. Writing a plugin is a breeze, and here an example of your first JQuery plugin, a logger to the firebug console.
Firebug is “de facto” the best developer tool for web developer I’ve ever used, and its console logging features are really amazing. Let’s see [...]

Continue reading about JQuery your first plugin

alkampfer on March 26th, 2009

I’m modifying an ASP.NEt site to achieve better performances, I’m actually moving some operations client-side with jquery. A typical pattern is to issue requests to a webservice instead of making a postback of the whole page. Here is a typical situation, I have a lot of rows in a grid and the user must be [...]

Continue reading about Set a wait image with JQuery for asyncronous operations