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
[SharePoint 2010] Solution to Load jQuery on All Pages
I have written a simple solution for SharePoint Foundation 2010 and SharePoint Server 2010 to allow site administrators to add the jQuery library to each SharePoint page without modifying master pages or adding it with a Content Editor Web Part. This feature is installed to the farm and is enabled on a per-site basis. By [...]
[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 [...]
Using Simple jQuery to Set the Height of a DIV to the Page Height
With CSS2 there is no easy way to set the height of an element to match the length of a page. Most people try to use: This only sets the element to be the height of the browser window. As soon as you scroll down, your element does not keep going. In all my searching [...]
