Month: December 2012
-
How to hide a field in a SharePoint EditForm.aspx page, append a replica, add a jQuery autocomplete, and put the selected value in the original field.
If you look at this old post, you can see a technique that I used to hide a form field, and then append read-only data after it. I wanted to use this technique to hide a field in a form, append a replica with a jQuery autocomplete, and based on the selected value from the…
-
Using jQuery to add a new item to the breadcrumbs at the top of a SharePoint 2010 site.
I wanted to add a bread crumb item to a sub site that pointed back to the home page. This is the jQuery code I used to insert it. This code also aadds the little arrow divider
-
Event calendar I used in my SharePoint 2010 intranet
This is more of a note for myself, but I thought I would post it anyway, since it my be useful to someone. I used the following event calendar on the front page of my intranet. Small, clean, worked well: Event-Calendar-Listing-Web-Part-SharePoint-2010
-
PowerShell 3 – Invoke-WebRequest and Invoke-RestMethod, unable to set the Accept header?
With both of these commands, when I try to add an Accept header (I want to receive my CRM 2011 data in JSON format, so I need Accept=application/json) I receive the error: “This header must be modified using the appropriate property or method.” I think this is a bug. This link shows the bug, and…
-
PowerShell 3: Invoke-WebRequest vs Invoke-RestMethod and a SharePoint 2010 list with more than 1000 entries
When using Invoke-RestMethod with a SharePoint 2010 list and ListData.svc, it returns an “System.Xml.XmlElement#http://www.w3.org/2005/Atom#entry” object. Not sure why, but the end result is that you can’t get access to the “rel=next” url, or am I doing something wrong? I had to use Invoke-WebRequest and then take the Content and put it in an XML variable,…
-
SharePoint 2010 modal dialog (showModalDialog) without an existing page
I was retrieving Activity data from a Microsoft CRM 2011 REST query. I wanted to have a popup with more information. I decided to use the built in showModalDialog. The problem was that all the examples I found showed how to popup an existing page. I wanted the modal to contain data that didn’t exist…
-
SharePoint 2010, CSOM and External Lists – must use LoadQuery
I was working on some JavaScript code to pull data from an External List that was pointing to a Microsoft CRM 2011 database. The code was being used to populate a jQuery autocomplete like this post. In that post you can see on line 10, I use the “load” method. This worked, but if I…
-
Using Nivo slider, knockout.js and SharePoint CSOM to create an announcements Slider
I wanted to create a slider that contains images and items from an announcements in my SharePoint 2010 home page. I started writing my own slider, but realized I was just re-creating the wheel. I ended up finding Nivo Slider. It seemed well supported and clean, so I went with that as my jQuery slider.…
-
Problems with SharePoint 2010 menus and javascript using a Cisco WebVPN (ASA)
We noticed that the SharePoint 2010 menus were not working with our Cisco ASA’s WebVPN. If the top level menu had children, they would not show on hover. Then we started noticing that all jQuery based functions stopped working. It seemed that much of the Javascript used with SharePoint 2010 would not work with our…
-
Looping through a SharePoint List Column with jQuery and replacing a GUID with a name from CRM 2011
This is a very specialized piece of code, but it came together nicely, so I thought I would share it. I have a SharePoint List that has a bunch of Microsoft CRM 2011 Contact GUIDs in it. Some columns have one GUID and others have multiple GUIDs separated by semicolons. My goal was: when a…
