0

The dev site was set up as a subsite in a site collection with the URL http://server/sites/site but on the production server it's just http://site so the src attribute on the dev box <script type="text/javascript" src="/Sites/site/Scripts/jquery-1.6.4.min.js"></script> obviously doesn't work on the prod box. I tried to set it like:

<script type="text/javascript" src="<% $SPUrl:~SiteCollection/Scripts/jquery-1.6.4.min.js" %></script>

but no luck (tried with/without runat="server"). What's the preferred approach here?

Thanks in advance.

0

Why not copy it to a mapped folder in the 14 hive, like /_layouts/scripts/jquery-1.6.4.min.js that way it is accessible from any site/web?

Should do the trick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.