Thursday, June 28, 2012


$ is not a function jQuery

If you are trying to add your own jQuery code to WordPress
and seeing an error “$ is not a function” in Firebug,

If you code is looking like this:

$(document).ready(function(){
    $("#list").dataTable({
    "bJQueryUI": true,
    "sPaginationType": "full_numbers"
    });
});

Then you need to change all '$' sign to jQuery.
Then add line

jquery.noConflict();

before your normal code

jQuery.noConflict();
jQuery(document).ready(function() {
jQuery('#list').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
});
});


Here you can find the complete documentation about jquery.noConflict();  

Wednesday, June 27, 2012


Pin a program to the taskbar

You can pin a program directly to the taskbar so you can open it quickly and conveniently, rather than looking for the program in the Start menu.
Watch this video to learn how to pin a program to the taskbar (1:13)

To pin a program to the taskbar

  • Do one of the following:
    If the program is already running, right-click the program's button on the taskbar (or drag the button toward the desktop) to open the program’s Jump List, and then clickPin this program to taskbar.
    – or –
    If the program isn't running, click Start, find the program’s icon, right-click the icon, and then click Pin to Taskbar.
You can also pin a program by dragging the program's shortcut from the desktop or Start menu to the taskbar. Additionally, if you drag the shortcut of a file, folder, or website to the taskbar, and the associated program isn't already pinned there, then that program is pinned to the taskbar and the item is pinned to the program’s Jump List.

In Windows 7, user cannot pin a Computer, My Documents, My Music, My Pictures, My Videos, Games, Recycle Bin or any folder and drive root to Windows Taskbar directly, with the exception of Control Panel. If user attempts to drag and drop the shortcut to a folder to Task Bar, it can’t be dropped into Taskbar with forbidden icon, or been shown option to “Pin to Windows Explorer” instead. Furthermore, when right click on a folder, there is no right click menu item of “Pin to Taskbar” too.

Pin to Windows Explorer may work for some users, who don’t mind have to right click on Windows Explorer icon in Taskbar, and then select the pinned folder or item on top of theJump List. For Windows 7 users who want the convenient to instantly open a folder such as My Documents by one-click on Task Bar, use the following trick, which similar to change default opening folder of Windows Explorer, to add the favorite folders to Windows 7 TaskBar.
  1. Right click on Desktop, and select New -> Shortcut.
    Create New Shortcut
  2. Visit list of available Explorer.exe special object switches to determine the shortcut value that should be entered. For example, if you want to pin Computer (or My Computer), then enter the following string as the location of the item:
    %SystemRoot%\explorer.exe /E,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
    Location of New Shortcut Item
    Click on Next when done.
  3. Enter a new for the shortcut. For example, Computer.
    Name the New Shortcut
    Click on Finish when done.
  4. A new shortcut will be placed on desktop. Optionally, right click on the shortcut, select Properties. Then click on Change Icon on Shortcut tab to change the icon of the shortcut (which will be used when pinned to Task Bar too).
    Change Icon
    Tip: Most of the default folder related icons are stored inside %windir%\System32\shell32.dll system file.
    Select New Icon
  5. Now, right click on shortcut on desktop, and click on the Pin to Taskbar on right click menu to pin the folder to Windows 7 Taskbar.
    Pin Folder to Taskbar
Folder on Windows 7 Taskbar
Voila, now a folder can be pinned and directly access from Windows 7 Taskbar. To unpin any of these folders, just right click on its button on Taskbar, and select “Unpin this program from taskbar”.

$ is not a function

If you are trying to add your own jQuery code to WordPress
and seeing an error “$ is not a function” in Firebug,

If you code is looking like this:

$(document).ready(function(){
    $("#list").dataTable({
    "bJQueryUI": true,
    "sPaginationType": "full_numbers"
    });
});

Then you need to change all '$' sign to jQuery

jQuery(document).ready(function() {
jQuery('#list').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
});
});