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 [...]
JavaScript
[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 [...]
[jQuery] Return User to Referring URL – Exit Link/Button
A user over at Experts Exchange was looking for a way to create an Exit button of sorts that would return the user to the page that referred them to the site (i.e. if the user got to the page via Google, the link would return them to Google). If the goal was to simply [...]
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 [...]
Programmatically Adding JavaScript Events to Buttons in ASP.NET C#
When working with buttons in C# for ASP.NET, it is often helpful to add JavaScript actions programmatically to the button that trigger when clicked in addition backend C# code. This can be used to generate pop-ups, create alerts and confirmations, disable buttons, etc.
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 [...]
