Posts

Showing posts from May, 2015

jQuery News Ticker

1. Create a custom list with columns Title, Feedback and add some list items. 2. Download "jquery-1.6.2.min.js" and "jquery.newsticker.js" files from the jQuery website & and upload in your SharePoint site. 3. Add a Content Editor/Script Editor Web Part and add the following code inside 4. Give the “js” file reference in the script section 5. Save and Close your Web Part <script src="/Documents/jquery-1.6.2.min.js" type="text/javascript"></script> <script src="/Documents/jquery.newsticker.js" type="text/javascript"></script> <style type="text/css"> .newsticker {  LIST-STYLE-TYPE: none; FONT-WEIGHT: normal } HR {  BACKGROUND-COLOR: #fecb00; HEIGHT: 3px; COLOR: #fecb00 }</style> <script type="text/javascript">     $(document).ready(function () {         var soapEnv ="<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/...

Increasing the width of Multiline text column in SharePoint view without Designer/code

Use jQuery to set width of your column in your CEWP/Script Editor WP. <script src="jquery-1.2.6.min.js" type="text/javascript"> </script> <script type="text/javascript"> $(function(){     $("div.ms-vh-div:contains(' SP Column Name ')").css("width", "width in pixels"); }); </script>

Script Editor Web Part in SharePoint 2013

Say good bye to Content Editor Web Part for simple scripts and HTML instead use the new Web Part called Script Editor Web Part on your page. By default Chrome style is none for this. Microsoft specifically designed this Web Part to insert JavaScript, Styles and HTML on your pages. You can find sample in the following blog. http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/05/20/how-to-use-script-editor-web-part-in-sharepoint-2013.aspx

SharePoint Designer shows a file as checked out while it is not

Issue: SharePoint designer shows a file as checked out while it is not, also it won't let you Check-in or Undo check-out. To fix this issue (tested it with SP Designer 2013): 1. Navigate to the folder (tested the path on Windows 7):       C:\Users\ **YourLoginName** \AppData\Local\Microsoft\WebsiteCache 2. Delete the files related to your SharePoint site (the entire folder with the same name as that of your     SP site). Please note that deleting all the folders will clear the list of Recently accessed sites as        well. 3. Restart SharePoint Designer. 4. You may have to Check-in the files one more time. You may encounter an error message but the Check-Out flag will be cleared.