Posted By

rumremix on 07/31/10


Tagged

javascript ASP sharepoint root-url master-page


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jlaws0n


sharepoint root url


 / Published in: JavaScript
 

  1. var rootUrl = "<asp:Literal runat='server' Text='<% $SPUrl:~SiteCollection/%>' />";
  2. //above code grabs top level site collection url
  3.  
  4. //below code provides the current site url using spservices
  5.  
  6. var siteUrl = $().SPServices.SPGetCurrentSite();

Report this snippet  

You need to login to post a comment.