Defining Custom methods for Pre-defined (inbuilt) Java Script methods




HOW to Define Custom methods for Pre-defined (inbuilt) Java Script methods


Some times i face the situation where i would need to override the existing inbuilt Java Script methods...Defining custom method is pretty easy, i have given below an example to override the existing Alert method...

//Overriding Javascript Alert method
var alertClone=window.alert;
if(document.getElementById)
{
window.alert = function(sMessage) { customAlert(sMessage);}
}

function customAlert(sMessage)
{
alertClone(sMessage);
}



just copy paste the code in your JavaScript and add your code inside CustomAlert() method...



Creating MOSS 2007 Virtual Machine



Creating MOSS 2007 Virtual Machine

Its a recommended to create Virtual machine (VPC image) to play around with MOSS 2007 (especially for beginners).

Couple of my friends were asking about creating VM machine with MOSS environment. We used to create it from base (Rgith from installing Win 2003 following with Office 2007, VS 2005, SQL 2005, .Net 3.0, WFF and MOSS 2007), and it would take a day or two to build a VM for Share Point 2007 (Here is link to create SharePoint 2007 VM on our own).

But now we don't need put that much effort to build a SharePoint VPC as Microsoft provides already built VPC image for MOSS 2007, Microsoft has uploaded it in Microsoft's Download center site (it expires after 30days, but u can always renew it with a different id)


Do the following steps to setup VPC for MOSS 2007...

Step 1: Please Insatll IIS in your host machine(laptop/desktop PC), Go to for more details about installing IIS on ur machine

Step 2: Downlad Microsoft Virtual Server here and install it, Please go to here for more information about Microsoft Virtual PC

Step 3: Click here and Download all six files.

Step 4: Run WIN03_MOSS_V1.part01.exe

Step 5: Above step Will join all five rar files and will create one VHD (Virtul Hard Disk), one VMC(Confiuration file) and a ReadMe file (documentation file which tells crelarly about opening the Virtual Hard Disk by using Microsoft Virtual Server)

Step 6: Open VHD by using Microsoft Virtual Server( Read me ReadMe file for help)

Play around with MOSS 2007 virtual machine