07.282011
0 0

Using jQuery to Find the Current Logged in User SharePoint 2010

JavaScript / jQuery on the page at either: $(document).ready _spBodyOnLoadFunctionNames will not return the required result, since the menu elements we need to interrogate have not been rendered yet. Solution: Set a timer to keep running a particular function to wait until the menu is rendered Stop the timer Interrogate the DOM as required using…

Read More
07.192011
0 0

SharePoint 2010 Designer Erased Customizations CSS

SharePoint Designer uses caching which can overwrite your changes. I have done this MANY times. 1. Best way to avoid this is to turn off caching for Designer but your site may run slower. In SPD go to file > options > application options – second to the last checkbox “Cache Site Data across SharePoint…

Read More
07.142011
0 0

Customize Search Box in SharePoint 2010

Add Search To Master Page or enable search box in masterpage <div class=”s4-notdlg”> <asp:ContentPlaceHolder id=”PlaceHolderSearchArea” runat=”server”> <SharePoint:DelegateControl runat=”server” ControlId=”SmallSearchInputBox” Version=”4″ /> </asp:ContentPlaceHolder> </div> To style the Search Button /*Search Box Styles*/ .s4-search input.ms-sbplain{ margin-top:5px!important; background:url(../images/search_left.png) no-repeat; border:0 none !important; height:16px; padding:4px 2px 2px 9px; color:#666; font-size:.85em; font-style:normal;} .s4-search .ms-sbgo{padding-top:5px;} .s4-search .ms-sbgo a{ margin-top:5px; background:url(../images/search_btn.png) no-repeat;…

Read More