SharePoint 2013 place holder

SharePoint 2013 Modal Dialogs that work.

Customer request modal dialogs from time to time in their applications. We use Twitter Bootstrap pretty heavy but sometimes we don’t have complete control over the JavaScript Framework. In those cases you’re forced to use the OOB SharePoint Modal implementation. The default SharePoint Master Page(s) do not include a reference to SP.UI.Modal.js. You can add the reference in the master page but then it loads on every page. New to…

Add browser compatability warning to SSRS

Explains how to tweak SQL Server Reporting Services to include a custom message. In this example we show how to add a custom message that displays a browser compatibility message. <!– js library imports – jeremy and ryan —> <scriptsrc=”http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js”type=”text/javascript”></script> <linkrel=”stylesheet”href=”//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css”> <scriptsrc=”//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js”></script> <!– sniffs the browser for IE if not then throws the alert up of not on IE —> <scriptlanguage=”javascript”type=”text/javascript”> var agentString = navigator.userAgent.toLowerCase(); $(document).ready( function() { if (agentString.indexOf(“trident”)…

SharePoint 2013 place holder

SharePoint call javascript after page load with Script Editor WebPart

In SharePoint 2013 they added a Script Editor WebPart. Add this to a page and add the following code in the WebPart Editor. <SCRIPT LAGUAGE="Javascript"> _spBodyOnLoadFunctionNames.push("color"); function color() { var colorCode = document.getElementsByTagName("td"); var i = 0; for (i = 0; i < colorCode.length; i++) { if (colorCode[i].className == "ms-cellstyle ms-vb2") { if (colorCode[i].innerHTML == "Green") { colorCode[i].style.color = 'Green'; } if (colorCode[i].innerHTML == "Yellow") { colorCode[i].style.color = 'Yellow'; }…