Search code examples
javascriptsharepointsharepoint-2010sharepoint-2007sharepoint-designer

how to include javascript (.js) file in sharepoint 2007


what is the way to use only one centralised javascript file in sharepoint 2007 and how we can refer to that js file through .aspx pages or custom master pages in sharepoint designer

Thanks


Solution

  • You can place it in the 12 hive in the layouts/1033 folder and then place a relative server reference in your page or masterpage. Here's a good thread on this: http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/a33634c7-19f7-401e-ae58-84bfe66a529e/