Archive for the 'SharePoint 2010' Category

08 Aug

Creating custom column with complex logic

Hello Readers, I got following question from Chris Polek who happen to stumble upon my blog. I tried to answer it best of my knowledge but I am sure there can be multiple ways to achieve this. If you find a better solution, do comment! Question: I would like to create a column in a [...]

19 Mar

How to display SharePoint 2010 processing animation?

This is not a huge deal. Putting in following code on your page will help. <div style="position:absolute; z-index:1000;display:block;width:100%" id="divInProg" > <table id="tblExPage" style="display:block" width="100%" > <tr><td align="center"> <table width="75%" > <tr> <td align="center"> <div id="s4-simple-card" class="s4-simple-gearpage"> <div id="s4-simple-card-content"> <h1> <img id="gearsImage" alt="This animation indicates the operation is in progress." src="/_layouts/images/gears_anv4.gif" style="width:24px; height:24px; font-size:0px;" align="absmiddle" /> [...]

18 Mar

How to remove all HTML tags from a string using XSLT?

This is something a SharePoint programmer usually faces. I hope following solution give you help to move ahead.   Removing all HTML tags from a string <xsl:template name="removeHtmlTags"> <xsl:param name="html"/> <xsl:choose>     <xsl:when test="contains($html, ‘&lt;’)">         <xsl:value-of select="substring-before($html, ‘&lt;’)"/>         <!– Recurse through HTML –>         <xsl:call-template name="removeHtmlTags">         <xsl:with-param name="html" select="substring-after($html, ‘&gt;’)"/>         </xsl:call-template> [...]