Friday, April 17, 2009

WPSC undefined Javascript Error

While Removing Core.JS and related files we will get WPSC Undefined Error in Share point web part pages.
If we get the error WPSC undefined as a java script use the following java script code

if(typeof(WPSC) == "undefined"){
WPSC = new Object();
WPSC.Init = function(){
//do nothing
WPSC.WebPartPage = new Object();
WPSC.WebPartPage.Parts = new Object();
WPSC.WebPartPage.Parts.Register = function()
//do nothing


  1. thanks a lot arun
    i expected this for a long time...
    now i cleared my WPSC error....

    lot of thanks

  2. where does this code get entered?