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…

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'; }…

js

SharePoint Form Tags Content Editor and Custom WebParts

Ever try to place a Form in a SharePoint WebPart or Content Editor WebPart. Doesn’t work real hot. In SharePoint 2010 I managed to strip a master page to its bare bones and override some JavaScript Methods and was able to nest a form tag. SharePoint 2013, a different story. So the basic jest, build the Form virtually on the client in memory using JavaScript and submit it. There is…