Categories: ASP.Net Posted by yeejie on 2/19/2010 1:43 PM | Comments (0)

Do you have this script that is not running in IE8:

var mybtn = document.createElement("input");
mybtn.setAttribute("onclick","alert('Javascript not working!');");

OR

mybtn.setAttribute("class","someCSSclassthatnotworking");

If yes, try this instead:

mybtn.onclick = function() { alert('Javascript working now in IE8!'); };

mybtn.className = "finallyCSSworking";

Credit to the following sites: http://www.tgerm.com/2009/02/javascript-ie-setattributeclass-or.html and http://stackoverflow.com/questions/1019078/how-to-set-onclick-attribute-with-value-containing-function-in-ie8

Categories: Sharepoint Posted by yeejie on 2/1/2010 7:56 AM | Comments (0)

Pasted from http://blah.winsmarts.com/2006-12-Backup-Restore_a_site_collection_in_SharePoint_2007.aspx

The best way to backup a SharePoint site is –

Stsadm –o backup –url <SiteURL> -filename <FileName>

For example: Stsadm –0 backup –url http://sharepoint:100 –filename c:\sharepoint100.bak

To restore the site, use

Stsadm –o restore –url <restoretoURL> -filename <filetorestorefrom>

For example: Stsadm –0 restore –url http://sharepointNEW:100 –filename c:\sharepoint100.bak

Categories: Sharepoint Posted by yeejie on 2/1/2010 7:45 AM | Comments (0)

Few searches revealed that this id is corresponding to Publishing Timer Jobs. To install the feature, run the following command:

stsadm -o installfeature -name PublishingTimerJobs