Westin's Technical Log

  • Creating Interactive SharePoint List Views Using the JavaScript Client Object Model

    There are some situations where you prefer to allow users to directly interact with list items directly within the row of the list view. Normally interaction occurs through the edit control block (ECB), the ribbon, or one of the list item forms. However, sometimes the action is a simple toggle activity that the user should simply be able to directly initiate directly from the list view UI.

  • AutoCorrect Common Microsoft Brand Names with this Script and Word

    Inspired by this post: http://on10.net/blogs/sarahintampa/Is-it-NET-Net-or-net/

    Here is a script to add the common misspellings of Microsoft brands to Word AutoCorrect.

    Copy and paste this into a file with a .JS extension and run it from your local computer.  Then launch Word and try typing Powerpoint and notice that it automatically changes to PowerPoint. 


    // JScript source code
    //Adds Word AutoCorrect entries for common misspellings and capitalizations for Microsoft Brands
    //inspired by

    var wd = new ActiveXObject("Word.Application");
    var AutoCorrections = [[".net", ".NET"], [".Net", ".NET"], ["Clear Type", "ClearType"], ["Kin", "KIN"], ["Powerpoint", "PowerPoint"], ["Power Point", "PowerPoint"],
    ["Seadragon", "SeaDragon"], ["Xbox Live", "Xbox LIVE"], ["Bizspark", "BizSpark"], ["Sharepoint", "SharePoint"], ["PlayTo", "Play To"],
    ["Infopath", "InfoPath"], [".net", ".NET"], [".Net", ".NET"], ["AdCenter", "adCenter"],
    ["Ad Center", "adCenter"], ["Adcenter", "adCenter"], ["Ado.net", "ADO.NET"], ["ADO.Net", "ADO.NET"],
    ["Asp.net", "ASP.NET"], ["ASP.Net", "ASP.NET"],
    ["Biz Spark", "BizSpark"], ["Bizspark", "BizSpark"],
    ["Clear Type", "ClearType"], ["Clear type", "ClearType"],
    ["Cleartype", "ClearType"], ["Directaccess", "DirectAccess"],
    ["Direct Access", "DirectAccess"], ["Direct Show", "DirectShow"],
    ["Directshow", "DirectShow"], ["Direct x", "DirectX"],
    ["Dream Spark", "DreamSpark"], ["Dreamspark", "DreamSpark"],
    ["Home Group", "HomeGroup"], ["Homegroup", "HomeGroup"],
    ["HoTMaiL", "Hotmail"], ["Hot Mail", "Hotmail"], ["Hot Mail", "Hotmail"],
    ["Info Path", "InfoPath"], ["Infopath", "InfoPath"],
    ["intellisense", "IntelliSense"], ["Intellisense", "IntelliSense"],
    ["Iron Ruby", "IronRuby"], ["MSN Messenger", "Windows Live Messenger"],
    ["onenote", "OneNote"], ["Onenote", "OneNote"], ["One Note", "OneNote"],
    ["XBOX", "Xbox"], ["xbox", "XBox"], ["Xaml", "XAML"],
    ["Sql Server", "SQL Server"], ["SilverLight", "Silverlight"],
    ["Share Point", "SharePoint"], ["sharepoint", "SharePoint"]];

    for (var i=0;i<AutoCorrections.length;i++)

  • SharePoint Wiki Page Incoming Links Web Part

    Ever want the “Incoming Links” page to show up on the wiki page rather than be a separate page?  Well, here is a handy web part you can add to a wiki page.

    This provided without warranty, just link to this article and tell folks how you used it.

    It uses some clever JavaScript to get the content from that page and asynchronously render it in a web part.

    1. Upload the Incoming Links.dwp file to your Web Part Gallery
    2. Edit the wiki page in question (not the wiki content, the whole page)
    3. Add the Incoming Links web part to the web part zone at the bottom of the page.

    This will either prevent you from the hassle of also having to support wikimedia in your environment (which is really great if you can) or buy you time until you can deploy SharePoint 2010.