JavaScript


[SharePoint 2010] JavaScript Errors in sp.ui.rte.js and sp.ui.rte.debug.js

In SharePoint 2010, there is a bug in the SP.UI.RTE.js file (and it’s debug version) that causes a JavaScript error in a few different situations. For myself, it was occurring when using the TaxonomyWebTaggingControl on a custom application page. Others have noticed the error with form validation. The issue is caused by a null reference […]

[SharePoint 2010] Missing Scrollbars in Google Chrome

On one of my SharePoint sites that has a heavily customized master page users couldn’t scroll in Google Chrome. The page would load normally, however, there was no scrollbar to reach the content below the fold. Upon investigation, I discovered that the tag had an attribute turning off scrolling: By simply removing that attribute, scrolling […]

[SharePoint 2010] Programmatically Add JavaScript, Meta Tags, and CSS Styles to the Header of Every Page

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages. For instance, you could add the jQuery library to the head of every page. If adding tags to the page <head> section is the […]

ASP.NET Proxy Page – Used for Cross Domain Requests from AJAX and JavaScript

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.sharepointjohn.com could not pull content or data from www.bing.com. One way to overcome this issue is by using a server-side proxy on the site […]

SharePoint 2007 – JQuery to Fix Ugly Page Titles

One thing that I have always found quite annoying in SharePoint 2007 is that content page titles are ugly.  For instance, if I create a new Web Part Page and give it the title “My Blog” with the URL “/pages/my_blog”, the title of the page in the browser ends up being “Pages – my_blog”.  Quick […]