Skip Ribbon Commands
Skip to main content
Cas | zevenseas | SharePoint Blog > Posts > Adding Scripts to all pages without writing code
May 11
Adding Scripts to all pages without writing code

Hello everyone. When I was developing for Office 365 I came across the following challenge. I needed to add some JavaScript functions to each SharePoint Page without writing code or even adjusting the MasterPage. When I start looking into this I found this Blog post from Andrew Connell: http://www.andrewconnell.com/blog/archive/2011/04/11/adding-jquery-to-every-page-in-a-sharepoint.aspx

The only thing you need is a Feature with a CustomAction Element.

<CustomAction
    ScriptSrc="~SiteCollection/Style Library/Scripts/jquery-ui-1.8.12.custom.min.js"
    Location="ScriptLink"
    Sequence="205"/>

ScriptSrc: This is the location of your script file.
Location: The control to render the reference to the script file. Works like a delegate control.
Sequence: When you need to add more scripts you can determine the sequence for loading.

When the Feature is activated the Script is automatically added to the ScriptLink control which is on de MasterPage by default.

Comments

abercrombie_milano

outlet Inoltre, la abercrombie a milano Abercrombie and Fitch Save abercrombie genova the Children Charity http://www.abercrombiemilanoofficial.net anello esposto all'ingresso dello showroom ha attirato grande attenzione http://www.abercrombiemilanoofficial.net . Per celebrare il suo 125 ° anniversario, Abercrombie and Fitch profumo abercrombie uomo ha sostenuto la abercrombie napoli grande educazione http://www.abercrombiemilanosale.biz dei figli della carità abercrombie online shop "Future Change" progetto avviato da "Save the Children" e ha creato http://www.abercrombiemilanosale.biz questo anello d'argento per rendere omaggio alla Abercrombie andabercrombie parigi Fitch, che era iniziato come un argentiere. L\'anello taglie abercrombie è inciso con Abercrombie abercrombie a roma and Fitch e l'emblema diabercrombie e fitch milano sito ufficiale Save the Children sull'anello esterno e all'interno monitorare rispettivamente. 20% del ricavato sarà devoluto a Save the Children. L'anello chiede per circa $ 400.
 on 9/20/2012 6:53 PM

abercrombie paris

L'auteur de cet article est http://www.abercrombieparisshop.net un expert sur les http://www.abercrombieparisshop.net dernières http://www.abercrombieparisshop.net tendances concernant les http://www.abercrombieparisshop.net vêtements griffés et des lunettes. Il a écrit de nombreux articles informatifs sur les marques de créateurs différents que Ray Ban, Gucci, Diesel et Abercrombie Fitch et les vêtements.Vêtements Abercrombie et Fitch ont été immédiatement apprécié lors de leur libération, et ont continué à être designer de vêtements populaire, malgré leurs prix haut http://www.abercrombieparisshop.net de gamme. Bien qu'ils soient de haute qualité et comporter des http://www.abercrombieparisshop.net motifs belles, il http://www.abercrombieparisshop.net ya plus à la perception de la valeur associée au nom de Abercrombie et Fitch http://www.abercrombieparisshop.net qu'un simple ingénierie de précision couplée avec un style classique. En http://www.abercrombieparisshop.net effet, leur réputation précède le nom, qui a pratiquement garanti ventes instantanées pour http://www.abercrombieparisshop.net leur puis-vêtements de designer ses débuts, le succès http://www.abercrombieparisshop.net qui perdure à chaque nouvelle version.Une http://www.abercrombieparisshop.net partie de la Abercrombie et Fitch mystique peut avoir à faire leurs bons de souscription octroyés royaux de nomination par les deux figures de proue de la monarchie http://www.abercrombieparisshop.net britannique, Sa Majesté la reine Elizabeth II et son fils et successeur de Son Altesse Royale le http://www.abercrombieparisshop.net prince de Galles. Mais ce fait prestigieuse pose plutôt la question qui est de savoir comment le nom de Abercrombie et Fitch http://www.abercrombieparisshop.net est devenu tellement vénéré en premier lieu.
 on 9/24/2012 2:16 AM

abercrombie deutschland

De plus, ce sac se caractérise par des garnitures en http://www.abercrombiedeutschlandofficial.biz cuir et de la tuyauterie sur les coutures, bracelet chaîne en cuir tissé http://www.abercrombiedeutschlandofficial.biz avec attache fermoir perroquet de marque à une extrémité. La sangle peut être détaché à une extrémité et enroulé autour du poignet pour porter le sac comme un bracelet. Ouvrez la fermeture éclair http://www.abercrombiedeutschlandofficial.biz sur http://www.abercrombiedeutschlandofficial.biz le dessus, vous pouvez voir la doublure en toile de coton et une poche plaquée intérieure. Il est http://www.abercrombiedeutschlandofficial.biz de taille à 23cm x 12cm x 4cm.Pricing est abordable à http://www.abercrombiedeutschlandofficial.biz £ http://www.abercrombiedeutschlandofficial.biz 395,00, étant donné qu'il est intemporel et http://www.abercrombiedeutschlandofficial.biz le fait qu'il s'agit d'un designer de vêtements. Peut-être que ce n'est pas http://www.abercrombiedeutschlandofficial.biz les vêtements les plus élégants en cette saison, mais vous savez ce Abercrombie and Fitch Vérifier et Sling Bag Porte-vous tiendrais au sophistiqué et élégant pour les années à venir. Abercrombie et Fitch vêtements hauteur sont pas à dédaigner, tu veux parler de sophistication dans la conception de démarrage, alors il n'ya pas de conversation sans Abercrombie and Fitch. http://www.abercrombiedeutschlandofficial.biz Le prix à payer pour ceux-ci de chiot http://www.abercrombiedeutschlandofficial.biz sont pas une blague non plus, donc si vous êtes assez chanceux pour enfiler une paire de ces vêtements très http://www.abercrombiedeutschlandofficial.biz sophistiqués grand alors il pourrait http://www.abercrombiedeutschlandofficial.biz signifier http://www.abercrombiedeutschlandofficial.biz qu'une seule chose ... vous êtes sur un autre niveau que la plupart des ... Période http://www.abercrombiedeutschlandofficial.biz !
 on 9/24/2012 2:17 AM

 abercrombie milano

chanceux pour enfiler une http://www.abercrombiemilanoofficial.net paire http://www.abercrombiemilanoofficial.net de http://www.abercrombiemilanoofficial.net ces vêtements très sophistiqués grand http://www.abercrombiemilanoofficial.net alors il pourrait signifier http://www.abercrombiemilanoofficial.net qu'une seule chose ... vous êtes http://www.abercrombiemilanoofficial.net sur un autre niveau que la plupart des ... Période !Vous pouvez trouver ces Abercrombie et Fitch vêtements en ligne de hauteur ou http://www.abercrombiemilanoofficial.net hors tension, si vous magasinez pour eux http://www.abercrombiemilanoofficial.net en ligne s'il vous http://www.abercrombiemilanoofficial.net plaît assurez-vous et visiter le site officiel Abercrombie et Fitch magasin et faire un tour à comparer les prix, si vous décidez de les acheter en ligne à partir de certains autre magasin http://www.abercrombiemilanoofficial.net assurez-vous de vérifier l'authenticité avant de prendre des décisions définitives, vous travaillez fort pour votre argent et vous voulez en avoir pour chaque centime que votre argent peut acheter.Vêtements Abercrombie et Fitch peut également être acheté dans n'importe quel magasin déconnecté sortie de la chaussure, comme une question de fait, je http://www.abercrombiemilanoofficial.net recommande à tous http://www.abercrombiemilanoofficial.net visiter http://www.abercrombiemilanoofficial.net un de ces magasins, de http://www.abercrombiemilanoofficial.net temps en temps pour voir ces bottes extraordinaires de près et personnel, http://www.abercrombiemilanoofficial.net de
 on 9/24/2012 2:17 AM

Add Comment

Title


Body *


Captcha *

 

Attachments

 

 Statistics

 
Views: 834
Comments: 4
Tags:
Published:741 Days Ago