Browsed by
Tag: JavaScript

Read a SharePoint list using JavaScript

Read a SharePoint list using JavaScript

There are countless ways to read data from a SharePoint list, and also myriad methods to do this in JavaScript, but I’m going to document this one way as a place to get started, and a published function I can refer back to if needed! First consider the following: Reading SharePoint list data using JavaScript requires the SP.js file to be loaded already. So, we should be putting this function inside of a $(document).ready(function())}; and if needed inside an ExecuteOrDelayUntilScriptLoaded(functionName,…

Read More Read More

SSRS 2008 functionality in IE9, IE10

SSRS 2008 functionality in IE9, IE10

Seems lately browsers update faster than the web solutions, or at least faster than we can update the web solutions to keep up with the browser changes. Maybe it’s just me… Regardless, my company very heavily relies upon custom reporting. Since there were numerous changes in the way IE9 and IE10 render JavaScript DOM objects and other elements, things like SSRS and SharePoint start “breaking”. I recently handled an update enterprise-wide to IE9 by having to modify SharePoint 2010’s compatibility…

Read More Read More

SharePoint 2010 compatibility in IE9

SharePoint 2010 compatibility in IE9

SharePoint 2010 is not fully compatible with IE9. To the best of my knowledge this is due to SharePoint’s heavy dependency upon DOM expandos and other features which were available through IE8, but are all removed from IE9. Controls like the Rich TextBox and People Picker tend to render improperly, throw errors on postback, etc. Fortunately, M_Olson posted a JavaScript mod that worked perfectly for me! It looks like this: function ConvertEntityToSpan(ctx, entity) {ULSGjk:; if(matches[ctx]==null) matches[ctx]=new Array(); var key=entity.getAttribute(“Key”); var…

Read More Read More