Posted By

rumremix on 08/11/10


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


sharepoint: grabbing top-level Style-Library url from any page using Javascript

 / Published in: JavaScript

Use when you don't know what the top-level collection will be called.

  1. var vidpath = String(window.location).split('/sites/')[0] + "/" + String(window.location).split('/sites/')[1].split('/')[0] + "/" + "Style%20Library/Lilly/images/";

Report this snippet  

You need to login to post a comment.