Tag Archives: JavaScript


SharePoint Short #19 When implementing your own Custom_AddDocLibMenuItems, which allows you to add custom menu items to the ECB of SharePoint items, remember to check for other implementations of this method before your own version. For example: function YourImplementationOf_AddDocLibMenuItems(m, ctx, … Continue reading

Posted in SharePoint, SharePoint Shorts | Tagged , | 4 Comments

PeopleEditor in Bound Control

Having problems updating a dynamically created PeopleEditor control on postback when utilising it in a bound repeating control? The following solution might help you. In the CreateChildControls method of your control create and add a HiddenField control at the same … Continue reading

Posted in SharePoint | Tagged , , | Leave a comment

Dynamically load JavaScript file

Sometimes you don’t always want a JavaScript file to load. If, for instance, a control that utilises it is loaded by a page that already references the same JavaScript file, you wouldn’t want to load the script file again. Note: … Continue reading

Posted in JavaScript | Tagged , | Leave a comment

Unable to set value of the property ‘aSettings’

I developed a page, inheriting from LayoutsPageBase which was being displayed in a modal dialog using JavaScript similar to the following: <script type="text/javascript"> function DisplayCustomPopupPage() { var options = SP.UI.$create_DialogOptions();   options.url = "http://urltocustompage/page.aspx"; options.title = "Popup Page"; options.allowMaximize = … Continue reading

Posted in JavaScript, SharePoint | Tagged , | 2 Comments

Hide All Site Content Link

Looking for a straight forward and relatively easy way of hiding the All Site Content link from the quick launch area? All you need to do is create a feature, manisfest file and user control that contains the script to … Continue reading

Posted in JavaScript, SharePoint | Tagged , | Leave a comment