Tag Info

New answers tagged


FYI, If you are only after using (simple) jQuery selectors. Microsoft has this thing called mQuery built in SharePoint. So jQuerys: $('#myID') becomes: m$('myID') straight out of the box, without the need for jQuery It is loaded on most pages (check in F12 developer tools) if not, use: EnsureScriptFunc('mQuery.js', 'm$', function() { // DO STUFF ...


You can also add your scripts in the following section too. <SharePoint:DelegateControl runat="server" ControlId="AdditionalPageHead" AllowMultipleControls="true"/>


In your custom page layout first add path to .js file (put path to src="") and then code. <script src="jquery-1.8.3.min.js">//<![CDATA[ //]]> </script> <script>//<![CDATA[ $(document).ready(function(){ //some code }); //]]> </script> <!--MS:<Publishing:EditModePanel ...


I have created a batch job to replace default.aspx page in blank web site. see the below code. private static string RootSite = ConfigurationManager.AppSettings.Get("RootSite"); private static string WebSite = ConfigurationManager.AppSettings.Get("WebSite"); private static string OriginalFile = ConfigurationManager.AppSettings.Get("OriginalFile"); private ...

Top 50 recent answers are included