Aug
11th

Stop Sniffing my Browser Type!

Quite often Opera users complain that their favorite browser cannot parse a web page and gives the following error:

Continue Reading

Aug
4th

Adding Silverlight to the GAC.

Sometimes there comes a need to refer to a Silverlight assembly from several different projects, the last thing you want is to copy the assembly to every project, you want it in the GAC.

Silverlight environment is not .NET and simply adding the assembly to the GAC with gacutil gives no effect.  On the other hand one may notice the standard Silverlight assemblies in “Add reference” dialog of Visual Studio after having installed Silverlight.

As it turns out, to be able to refer to any assembly from any project with “Add reference” all that’s needed is a special key in the registry:

  • openHKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MicrosoftSDKs\Silverlight\v4.0\AssemblyFoldersEx
  • if you have a 32-bit Windows, remove the Wow6432Node part.
  • Create a registry key with the name of your project
  • Add the default value containing the path to the assemblies

Now “Add reference” will show all the assemblies from the path in the key.

The solution turned out to be quite straight-forward.  Hope this helps.

Jul
28th

jQuery. A quick coda-slider improvement.

The problem: coda-slider does not provide for assigning a class to the inside of the current panel.  It lets you assign the current class to the dynamic tabs, if they are enabled, but some projects require applying the current class to the elements that are being displayed and rotated.

The solution: add a function to the source code of the plugin:

return this.each(function(){

// Uncomment the line below to test your preloader
// alert(“Testing preloader”);

var slider = $(this);

// to add current class to current panel
slider.setCurrentPanel = function() {
$(‘.panel’, slider).removeClass(‘current’);
$(‘.panel:eq(‘ + (currentPanel-1) + ‘)’, slider).addClass(‘current’);
}

Next, add the function call to the places where currentPanel is set: lines 83, 99, 119 and 226)

slider.setCurrentPanel();

You can change the file yourself or just download the result.

Jul
23rd

JQuery AeroWindow Plugin. Creating Aero-like Windows.

Files under jQuery | Leave a Comment

Here’s another handy jQuery plugin, it let’s you style your web site after Windows Aero® by creating windows that look like Windows 7 Aero and offer standard window functionality.

JQuery AeroWindow Plugin

Basic functionality and features:

  • minimize, maximize and close buttons
  • special feature: shiny objects animation during window move
  • double-clicking the window bar maximizes the window
  • infinitely extensible windows
  • visual window highlighting
  • animated window size change
  • moving windows with mouse
  • Z-order management (managing the windows stacking order)

and so on…

Continue Reading