AnsweredAssumed Answered

JavaScript - Finding Current Site.

Question asked by cedorfm on Mar 30, 2011
Latest reply on Apr 6, 2011 by cedorfm

I am trying to search the repository according to what site the user is currently in. There are several sites and I wan't to avoid creating a seperate webscript for each dashlet. If i had the current site, the search for a specific folder can be updated according to the current site. This would make my webscript very versatile, reusable, and would end the need for multiple webscripts.


var currentSite = HR;

var folder = userhome.childByNamePath("/sites/" + currentSite);