<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-2453580186845908170</atom:id><lastBuildDate>Fri, 01 Nov 2024 10:00:43 +0000</lastBuildDate><category>JavaScript</category><category>Event Handler</category><category>SP List</category><category>JQuery</category><category>SharePoint 2010</category><title>Sparky</title><description>The SharePoint Technology Blog...</description><link>http://vishalvaste.blogspot.com/</link><managingEditor>noreply@blogger.com (Unknown)</managingEditor><generator>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-9021448422736455220</guid><pubDate>Fri, 02 Mar 2012 21:40:00 +0000</pubDate><atom:updated>2012-03-03T03:10:49.948+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JQuery</category><category domain="http://www.blogger.com/atom/ns#">SharePoint 2010</category><title>Insert Video into List Item (Enhanced Rich text box field) SharePoint 2010</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;Problem:&lt;/b&gt; In our News site, any article is published as new list item, we wanted to have ability to add Videos in to the Article. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Limitations:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;We could not add out of the box web part on the list’s display.aspx page as it will display same video on each article, and at the same time, it will not be embedded in to the text and will have separate appearance on bottom or top of the article page. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;SharePoint does not support embedding video object using ribbon or enhanced rich text box html editor, if you try then it removes the &amp;lt;embed&amp;gt; or &amp;lt;object&amp;gt; tags once you save the list item.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;I goggled to see if embedding video in to rich text box is achievable, and I could found solution for MOSS 2007 only, with query rich text control.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;As we didn’t have much time to develop the ribbon control, I could manage below workaround. I hope below solution works for you.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Solution: &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Apart from the SharePoint out of the box Media Web Part, SharePoint uses the Silverlight overlay player, I observed it when I had uploaded the Video in asset/media library&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;on thumbnail view .&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;mso-no-proof: yes;&quot;&gt;&lt;shapetype coordsize=&quot;21600,21600&quot; filled=&quot;f&quot; id=&quot;_x0000_t75&quot; o:preferrelative=&quot;t&quot; o:spt=&quot;75&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; stroked=&quot;f&quot;&gt;&lt;stroke joinstyle=&quot;miter&quot;&gt;&lt;/stroke&gt;&lt;formulas&gt;&lt;f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;&gt;&lt;/f&gt;&lt;f eqn=&quot;sum @0 1 0&quot;&gt;&lt;/f&gt;&lt;f eqn=&quot;sum 0 0 @1&quot;&gt;&lt;/f&gt;&lt;f eqn=&quot;prod @2 1 2&quot;&gt;&lt;/f&gt;&lt;f eqn=&quot;prod @3 21600 pixelWidth&quot;&gt;&lt;/f&gt;&lt;f eqn=&quot;prod @3 21600 pixelHeight&quot;&gt;&lt;/f&gt;&lt;f eqn=&quot;sum @0 0 1&quot;&gt;&lt;/f&gt;&lt;f eqn=&quot;prod @6 1 2&quot;&gt;&lt;/f&gt;&lt;f eqn=&quot;prod @7 21600 pixelWidth&quot;&gt;&lt;/f&gt;&lt;f eqn=&quot;sum @8 21600 0&quot;&gt;&lt;/f&gt;&lt;f eqn=&quot;prod @7 21600 pixelHeight&quot;&gt;&lt;/f&gt;&lt;f eqn=&quot;sum @10 21600 0&quot;&gt;&lt;/f&gt;&lt;/formulas&gt;&lt;path gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot; o:extrusionok=&quot;f&quot;&gt;&lt;/path&gt;&lt;lock aspectratio=&quot;t&quot; v:ext=&quot;edit&quot;&gt;&lt;/lock&gt;&lt;/shapetype&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv_gyGdFxuXMJyW_qsIkiAugIKdNkXOd7MeDEUYU0LT-aPJO-kq4YAErgsjC-FxIlVkCWev5ijmq9WAs3McUubEiEi-mzpszYsRtqH-w0dZOnwZtTkn6-otuLGsX_l2dIghrPrXSm8CAM/s1600/image1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv_gyGdFxuXMJyW_qsIkiAugIKdNkXOd7MeDEUYU0LT-aPJO-kq4YAErgsjC-FxIlVkCWev5ijmq9WAs3McUubEiEi-mzpszYsRtqH-w0dZOnwZtTkn6-otuLGsX_l2dIghrPrXSm8CAM/s320/image1.jpg&quot; uda=&quot;true&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;mso-no-proof: yes;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJW-X6tNDdfUzJAVlwbKexgPdcDB5-TfeVV29QSP2N6TxcYi42iUioQcOkZWaaxTTyPqYOR4jGioA53SqKAZAT-Yc0fmnUsHaebYl0waZK4bDcwfMu3IHyrvlxdXcdiDKCwqr0jtNl2Xs/s1600/image1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;177&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJW-X6tNDdfUzJAVlwbKexgPdcDB5-TfeVV29QSP2N6TxcYi42iUioQcOkZWaaxTTyPqYOR4jGioA53SqKAZAT-Yc0fmnUsHaebYl0waZK4bDcwfMu3IHyrvlxdXcdiDKCwqr0jtNl2Xs/s320/image1.jpg&quot; uda=&quot;true&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;You can use this player on any SharePoint page/HTML Page/content editor web part or your Media/Training /Video library sites.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Below is the basic script that you could use, you may make it more dynamic to work with your video libraries.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;1)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Copy below script where you want to display the video, and pass the required parameters.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;lt;script type=&quot;text/JavaScript&quot; src=&quot;http://ajax.Microsoft.com/ajax/jQuery/jquery-1.3.2.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;_layouts/mediaplayer.js&quot;&amp;gt;&amp;lt;/script&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;mediaPlayer.createMediaPlayer(&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;videoHolder,&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;videoHolder.id,&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&#39;500px&#39;,&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&#39;333px&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;displayMode: &#39;Inline&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;mediaTitle: &#39;Video Entry&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;mediaSource: ‘videoURL’,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;previewImageSource:&#39;&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;autoPlay: false,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;loop: true,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;mediaFileExtensions:&#39;wmv;wma;avi;mpg;mp3;&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;silverlightMediaExtensions:&#39;wmv;wma;mp3;&#39;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;For more details visit below site-&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ee558890.aspx&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;http://msdn.microsoft.com/en-us/library/ee558890.aspx&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;To use this player as embedded in to the Rich text box follow below steps:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;1)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Open display.aspx page of the list where you want to embed the video.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;2)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Go to, Site Actions -&amp;gt; Edit Page &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;3)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Add content editor web part on your display.aspx page at bottom.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;4)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Make sure you have jquery.js included in master page if not then include the reference to jquery file in below script.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;5)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Copy and paste below script into the content editor web part you just added.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;lt;script src=&quot;/_layouts/mediaplayer.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;$(&quot;a[title^=&#39;Media&#39;]&quot;).each(function(){ &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;var txt = &quot;&amp;lt;div id=&#39;&quot;+ $(this).attr(&quot;title&quot;)&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;+&quot;&#39;&amp;gt;&quot; +&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&quot;&amp;lt;a href=&#39;&quot;+ $(this).attr(&quot;href&quot;) +&quot;&#39;&amp;gt;&amp;lt;img width=&#39;&quot;+ $(this).children(&#39;img&#39;).attr(&quot;width&quot;) +&quot;&#39; height=&#39;&quot; + $(this).children(&#39;img&#39;).attr(&quot;height&quot;)+&quot;&#39; src=&#39;&quot;+ $(this).children(&#39;img&#39;).attr(&quot;src&quot;) +&quot;&#39;/&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;$(this).replaceWith(txt);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;_spBodyOnLoadFunctionNames.push(&#39;mediaPlayer.createOverlayPlayer&#39;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;mediaPlayer.attachToMediaLinks((document.getElementById( $(this).attr(&quot;title&quot;))),[&#39;wmv&#39;, &#39;avi&#39;, &#39;mp4&#39;]);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;});&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;6)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Stop editing the page, and save current changes.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;7)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Now Edit the item where you want to embed the video.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;8)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Insert the cursor where you want to add the video (as highlighted below)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyn3kmkklRLvrMC0H28nHknEbXAvKn66lBxjOub3LjLmYVrnv2HwRJ1lazZc4bZ0-P4YtqKgtmNEGT3qQRjqC-U_2ZNfe0LlFiIPlXvN5rWM9Vpps1zs6BeylAb3CEUty-M-YwDYxYx3Y/s1600/image1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;151&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyn3kmkklRLvrMC0H28nHknEbXAvKn66lBxjOub3LjLmYVrnv2HwRJ1lazZc4bZ0-P4YtqKgtmNEGT3qQRjqC-U_2ZNfe0LlFiIPlXvN5rWM9Vpps1zs6BeylAb3CEUty-M-YwDYxYx3Y/s320/image1.jpg&quot; uda=&quot;true&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;span style=&quot;mso-no-proof: yes;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;9)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;In ribbon go to Insert -&amp;gt; Picture -&amp;gt; picture from computer&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg44wGEX9p0NjCc5ZdbwYqUZ1vesxbTfhMySMWTekJ0hyakD3AlnBr84cxcgfkAbQ1VlA-ukU77t1I4p4iEt5pkc4EjxrbOLv9EJqv9U0oXNSzLq3RTUaZi3mHwOd29_PFmjBnoL07U_TE/s1600/image1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;109&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg44wGEX9p0NjCc5ZdbwYqUZ1vesxbTfhMySMWTekJ0hyakD3AlnBr84cxcgfkAbQ1VlA-ukU77t1I4p4iEt5pkc4EjxrbOLv9EJqv9U0oXNSzLq3RTUaZi3mHwOd29_PFmjBnoL07U_TE/s320/image1.jpg&quot; uda=&quot;true&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;10)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Select the Preview image (considering already uploaded in some image library) from the image library which will be act as preview for the video, resize it if you want &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwhmlZby7dgW-UJGzj79fyia1ZZnaFXF5Ddy6RJ5fIuRg1MiGXBmCEoT0HHJz3b7f3BWoDcybkwnUr1XKocLwAxwf1AKhzAH5tI7TsKEGBj-0VCGkO4AEZDga6Y4b5ka9sjIm3JLYv9yM/s1600/image1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwhmlZby7dgW-UJGzj79fyia1ZZnaFXF5Ddy6RJ5fIuRg1MiGXBmCEoT0HHJz3b7f3BWoDcybkwnUr1XKocLwAxwf1AKhzAH5tI7TsKEGBj-0VCGkO4AEZDga6Y4b5ka9sjIm3JLYv9yM/s320/image1.jpg&quot; uda=&quot;true&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;11)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Make sure inserted image is selected, then go to ribbon -&amp;gt; insert -&amp;gt; Link -&amp;gt; from SharePoint&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfKxJf1xDejegvsBnwMRPbhPetHQoQjsSv2x6TGB2a6nFI6dEbfdHUcqnCHvczpLweY4W1GMNWbK0lcU1ueX1nrPSJBqaL6M5f-qHxvER2gVIC5Nq0kTqnWEz19UgSRozqGvXK4HppTMo/s1600/image1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;92&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfKxJf1xDejegvsBnwMRPbhPetHQoQjsSv2x6TGB2a6nFI6dEbfdHUcqnCHvczpLweY4W1GMNWbK0lcU1ueX1nrPSJBqaL6M5f-qHxvER2gVIC5Nq0kTqnWEz19UgSRozqGvXK4HppTMo/s320/image1.jpg&quot; uda=&quot;true&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;12)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Link the image with the video you want from the asset library (Considering you have already uploaded the video in asset/media lib) &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;13)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Make sure after linking you give description as Media1( you may change this name, make sure you also change it in the script as well)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheHxCabPhyphenhyphenEWRaVQ9sD7bbSgT521c6SwlmCX3I7JMYNIwtPUtmhlpYg1v-Xu2VpkgRRpmVXDAzGkQx7iTyqRIiJQG1F2ENGb3n5xajmE6WHxCXZXSzQq9E6UPRxOFVQK7p-dzUxINKlD0/s1600/image1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;95&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheHxCabPhyphenhyphenEWRaVQ9sD7bbSgT521c6SwlmCX3I7JMYNIwtPUtmhlpYg1v-Xu2VpkgRRpmVXDAzGkQx7iTyqRIiJQG1F2ENGb3n5xajmE6WHxCXZXSzQq9E6UPRxOFVQK7p-dzUxINKlD0/s320/image1.jpg&quot; uda=&quot;true&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #1f497d; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;sans-serif&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;14)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;If you want to add multiple videos, follow the same steps except step 13. For last step you need to be sure of adding description, it should be unique and follow same naming convention e.g Media1, Media2, media3 etc…&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;15)&lt;/span&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;After adding videos save the article/list item, and once its rendered you will see the overlay player working for you.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://vishalvaste.blogspot.com/2012/03/insert-video-into-list-item-enhanced.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv_gyGdFxuXMJyW_qsIkiAugIKdNkXOd7MeDEUYU0LT-aPJO-kq4YAErgsjC-FxIlVkCWev5ijmq9WAs3McUubEiEi-mzpszYsRtqH-w0dZOnwZtTkn6-otuLGsX_l2dIghrPrXSm8CAM/s72-c/image1.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-6606122361709529291</guid><pubDate>Thu, 10 Nov 2011 19:12:00 +0000</pubDate><atom:updated>2011-11-11T00:42:07.920+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>Sorting SharePoint list item attachments</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;-This script is designed/tested only on Display form of list item.&lt;br /&gt;
-Add your attachment field under a div using SP designer, &amp;lt;div id=&quot;divAttachment&quot;&amp;gt; &amp;lt;SharePoint:AttachmentsField ControlMode=&quot;Display&quot; FieldName=&quot;Attachments&quot; runat=&quot;server&quot; Visible=&quot;true&quot;/&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
-Add below script on the page&lt;br /&gt;
&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;br /&gt;
var fullHtml = $(&#39;#idAttachmentsTable&#39;).html();&lt;br /&gt;
var fileName = new Array();&lt;br /&gt;
var i = 0;&lt;br /&gt;
$(&quot;#idAttachmentsTable&quot;).find(&#39;a&#39;).each(function() {&lt;br /&gt;
fileName[i]&amp;nbsp; = new Array();&lt;br /&gt;
fileName[i][0]= $(this).text();&lt;br /&gt;
fileName[i][1] = $(this).attr(&#39;href&#39;);&lt;br /&gt;
i++;&lt;br /&gt;
}); &lt;br /&gt;
fileName.sort();&lt;br /&gt;
document.getElementById(&#39;divAttachment&#39;).innerHTML = &#39;&#39;;&lt;br /&gt;
for(var cntArr=0; cntArr&amp;lt;fileName.length;cntArr++)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;var strHref = &quot;&amp;lt;a href=&#39;&quot;+fileName[cntArr][1]+&quot;&#39;&amp;gt;&quot;+fileName[cntArr][0]+&quot;&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;document.getElementById(&#39;divAttachment&#39;).innerHTML += strHref; &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;</description><link>http://vishalvaste.blogspot.com/2011/11/sorting-sharepoint-list-item.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-8391742950989561741</guid><pubDate>Thu, 24 Mar 2011 20:16:00 +0000</pubDate><atom:updated>2011-03-26T00:21:32.759+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>Hide SharePoint List Fileds with blank value from Display form, using HTML comments</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
_spBodyOnLoadFunctionNames.push(&quot;Fields&quot;);&lt;br /&gt;
function FindField(fieldName) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; // get all the HTML comments&lt;br /&gt;
&amp;nbsp;&amp;nbsp; var arr = document.getElementsByTagName(&quot;!&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; for (var i=0;i &amp;lt; arr.length; i++ )&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // check the field name&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (arr[i].innerHTML.indexOf(fieldName) != -1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return arr[i];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
//implimenation of string trim function&lt;br /&gt;
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, &#39;&#39;); };&lt;br /&gt;
function Fields() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; var field = FindField(&quot;All Day Event&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; HideField(field);&lt;br /&gt;
&amp;nbsp;field = FindField(&quot;Recurrence&quot;);&lt;br /&gt;
&amp;nbsp;HideField(field);&lt;br /&gt;
&amp;nbsp;field = FindField(&quot;Workspace&quot;);&lt;br /&gt;
&amp;nbsp;HideField(field);&lt;br /&gt;
}&lt;br /&gt;
function HideField(field)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;if( field!= null)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;var childNods = field.parentNode.childNodes;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;for( var j=0; j&amp;lt; childNods.length;j++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; if(childNods[j].innerHTML != null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var innerCode = field.parentNode.innerHTML;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var cmtCode = childNods[j].innerHTML;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var cmtEnd = innerCode.lastIndexOf(&quot;--&amp;gt;&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var childCmtEnd =&amp;nbsp;cmtCode.lastIndexOf(&quot;--&amp;gt;&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;if(childCmtEnd &amp;gt; 0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;var len=&amp;nbsp;&amp;nbsp; innerCode.length;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;var fieldValue = innerCode.substring(cmtEnd + 3, len);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;if(fieldValue != null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fieldValue = fieldValue.replace(&quot;&amp;amp;nbsp;&quot;,&quot;&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fieldValue = fieldValue.trim();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(fieldValue == &quot;&quot; )&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field.parentNode.parentNode.style.display=&quot;none&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(childNods[j].outerHTML.indexOf(&quot;&amp;lt;IMG&quot;) != -1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;continue;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var otherThanCommentTag = childNods[j].innerHTML;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;otherThanCommentTag = otherThanCommentTag.replace(&quot;&amp;amp;nbsp;&quot;,&quot;&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;otherThanCommentTag = otherThanCommentTag.trim();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;otherThanCommentTag= otherThanCommentTag.replace(/&amp;lt;(.|\n)*?&amp;gt;/g,&quot;&quot;);&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(otherThanCommentTag == &quot;&quot; )&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field.parentNode.parentNode.style.display=&quot;none&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;</description><link>http://vishalvaste.blogspot.com/2011/03/hide-sharepoint-list-fileds-with-blank.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-181444413281128506</guid><pubDate>Fri, 23 Apr 2010 18:38:00 +0000</pubDate><atom:updated>2010-04-24T00:18:03.544+05:30</atom:updated><title>jQuery to find and replace HTML content</title><description>$(document).ready(function(){&lt;br /&gt;&lt;br /&gt;      $(&#39;body&#39;).children().each(function() {&lt;br /&gt;            //I wanted to replace localhost\sparky to sparky&lt;br /&gt;            //first param of replace is nothing but the regex, you can also use the regex&lt;br /&gt;           var loginname= $(this).html().replace(/localhost\\sparky/g,&#39;sparky&#39;);&lt;br /&gt;           &lt;br /&gt;           //this replaces the modified HTML&lt;br /&gt;           $(this).html(loginname);&lt;br /&gt;&lt;br /&gt;          //I wanted to remove the time stamp 12.00 AM from date       &lt;br /&gt;          var time= $(this).html().replace(/12.00 AM/g,&#39; &#39;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;           //this replaces the modified HTML&lt;br /&gt;             $(this).html(time);&lt;br /&gt; });&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;});</description><link>http://vishalvaste.blogspot.com/2010/04/jquery-to-find-and-replace-html-content.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-3915209688007939622</guid><pubDate>Tue, 28 Apr 2009 11:51:00 +0000</pubDate><atom:updated>2009-04-28T17:23:35.456+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>Getting Current User and setting it to the People Picker using JavaScript</title><description>//Set People picker field to current user by Andy Bonner&lt;br /&gt;&lt;br /&gt;_spBodyOnLoadFunctionNames.push(&quot;fillDefaultValues&quot;);&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;function fillDefaultValues() &lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;fillPeoplePickerWithCurrentUser(&#39;Submitted_x0020_By&#39;);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function fillPeoplePickerWithCurrentUser(pickerName)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;//get the current user from the welcome menu&lt;br /&gt;var currentUser = getCurrentUser();&lt;br /&gt;//check to see that we&#39;ve got it&lt;br /&gt;if(currentUser != null)&lt;br /&gt;{&lt;br /&gt;//get the people pickers input div&lt;br /&gt;var pp = getPickerInputElement(pickerName);&lt;br /&gt;//set it to the current user if we&#39;ve found it&lt;br /&gt;if(pp != null)&lt;br /&gt;pp.innerHTML = currentUser;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;function getCurrentUser()&lt;br /&gt;{&lt;br /&gt;var tags = document.getElementsByTagName(&#39;a&#39;);&lt;br /&gt;for (var i=0; i &lt; tags.length; i++)&lt;br /&gt;{&lt;br /&gt;if(tags[i].innerText.substr(0,7) == &#39;Welcome&#39;)&lt;br /&gt;{&lt;br /&gt;return tags[i].innerText.substr(8,tags[i].innerText.length);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function getPickerInputElement(fieldsInternalName)&lt;br /&gt;{&lt;br /&gt;var result = &quot;&quot;;&lt;br /&gt;var divs = document.getElementsByTagName(&quot;DIV&quot;);&lt;br /&gt;for(var i=0; i &lt; divs.length ; i++)&lt;br /&gt;{&lt;br /&gt;if(divs[i].id==&quot;WebPartWPQ2&quot;)&lt;br /&gt;{&lt;br /&gt;var tds = divs[i].getElementsByTagName(&quot;TD&quot;);&lt;br /&gt;for(var j=0; j &lt; tds.length; j++)&lt;br /&gt;{&lt;br /&gt;var cellHTML = tds[j].innerHTML;&lt;br /&gt;if(cellHTML.indexOf(&#39;FieldInternalName=&quot;&#39; + fieldsInternalName + &#39;&quot;&#39;) &gt;= 0)&lt;br /&gt;{&lt;br /&gt;var innerDivs = tds[j].getElementsByTagName(&quot;DIV&quot;);&lt;br /&gt;for(var k=0; k &lt; innerDivs .length; k++)&lt;br /&gt;{&lt;br /&gt;if(innerDivs[k].id.indexOf(&quot;UserField_upLevelDiv&quot;) &gt; 0)&lt;br /&gt;{&lt;br /&gt;result = innerDivs[k];&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return result;&lt;br /&gt;}</description><link>http://vishalvaste.blogspot.com/2009/04/getting-current-user-and-setting-it-to.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-4691523729590934407</guid><pubDate>Tue, 28 Apr 2009 11:26:00 +0000</pubDate><atom:updated>2009-04-28T17:07:05.724+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>JavaScript funtion to hide fields on Newform.aspx/Editform.aspx</title><description>•TAGNAME: HTML element that is being rendered (&quot;SELECT&quot;, &quot;INPUT&quot;...)&lt;br /&gt;&lt;br /&gt;•IDENTIFIER: SharePoint field type identifier (&quot;TextField&quot;, &quot;DropDownChoice&quot;...)&lt;br /&gt;&lt;br /&gt;•FIELD NAME: Display name of the field (e.g. &quot;Status&quot;, &quot;Customer Name&quot;...)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Script starts...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;_spBodyOnLoadFunctionNames.push(&quot;hideFields&quot;);&lt;br /&gt;&lt;br /&gt;function hideFields() {&lt;br /&gt;var control = getTagFromIdentifierAndTitle(&quot;TAGNAME&quot;,&quot;IDENTIFIER&quot;,&quot;FIELD NAME&quot;);&lt;br /&gt;control.parentNode.parentNode.parentNode.style.display=&quot;none&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function getTagFromIdentifierAndTitle(tagName, identifier, title) {&lt;br /&gt;var len = identifier.length;&lt;br /&gt;var tags = document.getElementsByTagName(tagName);&lt;br /&gt;for (var i=0; i &lt; tags.length; i++) {&lt;br /&gt;var tempString = tags[i].id;&lt;br /&gt;if (tags[i].title == title &amp;&amp; (identifier == &quot;&quot; || tempString.indexOf(identifier) == tempString.length - len)) {&lt;br /&gt;return tags[i];&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return null;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Script ends...&lt;br /&gt;&lt;br /&gt;you can also refer to &lt;a href=&quot;http://blogs.msdn.com/sharepointdesigner/archive/2007/06/13/using-javascript-to-manipulate-a-list-form-field.aspx&quot;&gt;this link&lt;/a&gt;</description><link>http://vishalvaste.blogspot.com/2009/04/javascript-funtion-to-hide-fields-on.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-3472958665507256728</guid><pubDate>Mon, 27 Apr 2009 08:49:00 +0000</pubDate><atom:updated>2009-04-28T17:05:03.189+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>JavaScripts to Disable controls on Newform.aspx/Editform.aspx</title><description>JavaScripts to Disable controls on Editform.aspx&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;for(var i = 0; i &lt; document.aspnetForm.elements.length; i++)&lt;br /&gt;if ((document.aspnetForm.elements[i].title == &quot;Recommendation&quot;)) // give the title of the control that you want to disable&lt;br /&gt;{&lt;br /&gt;document.aspnetForm.elements[i].disabled =&lt;br /&gt;true;&lt;br /&gt;}</description><link>http://vishalvaste.blogspot.com/2009/04/javascripts-to-disable-controls-on.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-4481049459393975100</guid><pubDate>Mon, 27 Apr 2009 08:38:00 +0000</pubDate><atom:updated>2009-04-27T15:54:48.937+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>JavaScript function to get element using tag name and title</title><description>function GetElementByText(tagName, title)&lt;br /&gt;    {&lt;br /&gt;        var a = document.getElementsByTagName(tagName);&lt;br /&gt;  &lt;br /&gt;        for (var i=0; i &lt; a.length; i++)&lt;br /&gt;        {&lt;br /&gt;            if (a[i].value)&lt;br /&gt;            {&lt;br /&gt;                if (a[i].value == title )&lt;br /&gt;                {&lt;br /&gt;                       return a[i];&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        return null;&lt;br /&gt;    }</description><link>http://vishalvaste.blogspot.com/2009/04/javascript-function-to-get-element.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-2423723831661841986</guid><pubDate>Mon, 27 Apr 2009 08:30:00 +0000</pubDate><atom:updated>2009-04-27T14:27:07.113+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">SP List</category><title>Add Custom Menu to List Item and Document Library Item</title><description>var siteUrl = GetSiteUrl();&lt;br /&gt;&lt;br /&gt;function Custom_AddListMenuItems(m, ctx)&lt;br /&gt;{&lt;br /&gt;var copyCurrentItemId = currentItemID;&lt;br /&gt;var titleText = null;&lt;br /&gt;&lt;br /&gt;// Add Open Workspace menu item&lt;br /&gt;var strDisplayText = &quot;Request Home&quot;;&lt;br /&gt;var strAction =  &quot;document.location.href=&#39;&quot;+siteUrl+&quot;/DCP/RequestPage.aspx?Request=&quot;+titleText+&quot;&amp;amp;ID=&quot;+copyCurrentItemId+&quot;&#39;&quot;;&lt;br /&gt;CAMOpt(m, strDisplayText, strAction);&lt;br /&gt;CAMSep(m);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// false means that the standard menu items should also rendered&lt;br /&gt;&lt;br /&gt;return false;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function me()&lt;br /&gt;{&lt;br /&gt; window.location = siteUrl + &quot;/DCP/NewRequestByMgr.aspx?&amp;amp;Source=&quot;+GetSource();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function GetSiteUrl()&lt;br /&gt;{&lt;br /&gt;   var siteUrl = window.location.href;&lt;br /&gt;   var copyOfSiteUrl = siteUrl;&lt;br /&gt;   siteUrl = siteUrl.split(&quot;/&quot;);&lt;br /&gt;   var isSubSite = false;&lt;br /&gt;   var url = null;&lt;br /&gt;&lt;br /&gt;   if(siteUrl[3] == &#39;sites&#39;)&lt;br /&gt;   {&lt;br /&gt;      isSubSite = true;&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;   if(isSubSite)&lt;br /&gt;   {&lt;br /&gt;      copyOfSiteUrl = copyOfSiteUrl.split(&quot;sites/&quot;); &lt;br /&gt;      var subSiteName = copyOfSiteUrl[1].split(&quot;/&quot;);&lt;br /&gt;      url = copyOfSiteUrl[0] + &quot;sites/&quot; + subSiteName[0];&lt;br /&gt;      return url;&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;      copyOfSiteUrl = copyOfSiteUrl.split(&quot;/&quot;);&lt;br /&gt;      url = copyOfSiteUrl[0] + &quot;//&quot; + copyOfSiteUrl[2];&lt;br /&gt;      return url;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For document library use&lt;br /&gt;function AddDocLibMenuItems(m, ctx)&lt;br /&gt;{&lt;br /&gt;if (typeof(Custom_AddDocLibMenuItems) != “undefined”)&lt;br /&gt;{&lt;br /&gt;if (Custom_AddDocLibMenuItems(m, ctx))&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;function instead of Custom_AddListMenuItems(m, ctx)&lt;br /&gt;{&lt;br /&gt;.....&lt;br /&gt;}</description><link>http://vishalvaste.blogspot.com/2009/04/add-custom-menu-to-list-item-and.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-115859671058762774</guid><pubDate>Mon, 27 Apr 2009 07:29:00 +0000</pubDate><atom:updated>2009-04-27T14:36:24.003+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">SP List</category><title>Filtered Lookup Lists in SharePoint</title><description>SharePoint allows you to create custom lists with your own custom columns. One type you can use for these columns is a lookup against one of your other lists in the SharePoint site. By default this lookup gives the user all the items that are available in the list. Many times, you probably want to have a filtered list instead of the complete one.&lt;br /&gt;Lately, I had to do exactly this for a customer. The approach explained here is probably not the only one you can take but it is one you can start with and it is not difficult to incorporate that within your NewForm/EditForm.aspx (the pages where you actually see the lookup). The approach I have taken is a small JavaScript function that repopulates the dropdown based on the items in the lookuplist that are visible via a view you create. Take for example a list that allows users to submit questions to SharePoint. Besides columns for capturing data regarding the question itself, the user also has to select the person who has to handle the question. In our case, the person submitting the question has one or more roles he or she can select from. A custom list storing this information is create to support the lookup that needs to be done.&lt;br /&gt;When you create the Questions list, you can create a column Role that points to that second lookup list. Problem is that everything out of that list is displayed to the user and we want to have the user only see those entries that are relevant for him or her. So, I first thing I did was to create a new view on the second list that only displays all the roles for the logged on user. This view has the filter set to [Me] (a common practice when creating views).&lt;br /&gt;Next thing you do is to open up the EditForm.aspx of the first list (the questions one) in FrontPage. At the bottom of the HTML (just before the closing BODY tag) you can add the following script blocks.&lt;br /&gt;&lt;br /&gt;&lt;script language=&quot;javascript&quot; src=&quot;/sites/development/repopulate.js&quot;&gt;&lt;/script&gt; &lt;script language=&quot;javascript&quot;&gt; // drop here all the lists you want to have repopulated based on a view parameters are: // controlName - the exact name as it appears in the HTML sent to the browser // siteName - the root / and possibly sub site you are working on // lookupListName - the guid for the list you want to use as lookup // lookupViewName - the guid for the view filtering the content of the list // textField - the field you want to show to the user // valueField - this is most of the time the internal ID field RepopulateList(&quot;urn:schemas-microsoft-com:office:office#Role&quot;, &quot;/sites/development&quot;, &quot;{4E933C67-848B-4DAF-A383-B99BC9AEAFA7}&quot;, &quot;{C97B2EFD-B552-490D-9B05-61B2B88836D2}&quot;, &quot;ows_LinkTitle&quot;, &quot;ows_ID&quot;);&lt;/script&gt;&lt;br /&gt;The first block points to a Javascript file with a generic function to repopulate lists (note that it needs more exception handling to become really generic!). Here is the content of that file:&lt;br /&gt;&lt;br /&gt;function RepopulateList(controlName,siteName,lookupListName,lookupViewName,textField,valueField) { // -- retrieve the list for the elements var listEl = document.getElementsByName(controlName) // -- emptying the listif(listEl.length&gt;0) {   listEl(0).innerHTML = &quot;&quot;;  // -- getting the filtered lookup  var reqstring = siteName + &quot;/_vti_bin/owssvr.dll?CS=109&amp;amp;XMLDATA=1&amp;amp;RowLimit=0&amp;amp;List=&quot; + lookupListName + &quot;&amp;amp;View=&quot; + lookupViewName; var req = new ActiveXObject(&quot;MSXML2.XMLHTTP&quot;); req.open(&quot;GET&quot;,reqstring,false); req.send(); // -- loading response in XML Document var doc = new ActiveXObject(&quot;MSXML2.DOMDocument&quot;); doc.loadXML(req.responseText); var data = doc.documentElement.childNodes(1); for (i=0;i&lt;data.childNodes.length;i++) {    var optionText = data.childNodes(i).attributes.getNamedItem(textField).value;   var optionValue = data.childNodes(i).attributes.getNamedItem(valueField).value;   var opt = document.createElement(&quot;OPTION&quot;);   listEl(0).options.add(opt);   opt.innerText = optionText;   opt.value = optionValue; } } }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The second script block calls this function providing it the necessary values to go back to the server and retrieve the XML with only the data provided by the created view. I use that XML to repopulate the list then. Notice the owssvr.dll I am calling in the script. When you look at a view in a SharePoint, you can always view the source of that page and at the bottom of the page you will find the following information: You can copy this link and run it in the browser. The result is the following: This is the response I need to repopulate the dropdown then with only the roles for the current visitor. The performance is not that great if you apply this technique for big lookup lists so be careful. Test it first for your own specific scenario. To filter big lookup lists, you better have a look at your own custom ASP.NET control.&lt;br /&gt;&lt;br /&gt;You can refer to &lt;a href=&quot;http://blog.u2u.info/DottextWeb/patrick/articles/466.aspx&quot;&gt;this link&lt;/a&gt; as well&lt;br /&gt;</description><link>http://vishalvaste.blogspot.com/2009/04/filtered-lookup-lists-in-sharepoint.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-3848948951078924254</guid><pubDate>Mon, 27 Apr 2009 07:22:00 +0000</pubDate><atom:updated>2009-04-27T14:06:56.682+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>JavaScript Funtions to get Query String Value, Host Name and Site Url</title><description>function GetQueryString( name )&lt;br /&gt;{  &lt;br /&gt;        name = name.replace(/[\[]/,&quot;\\\[&quot;).replace(/[\]]/,&quot;\\\]&quot;);  &lt;br /&gt;        var regexS = &quot;[\\?&amp;]&quot;+name+&quot;=([^&amp;#]*)&quot;;  &lt;br /&gt;        var regex = new RegExp( regexS );  &lt;br /&gt;        var results = regex.exec( window.location.href );  &lt;br /&gt;        if( results == null )    &lt;br /&gt;            return &quot;&quot;;  &lt;br /&gt;        else&lt;br /&gt;        {   &lt;br /&gt;            if(results[1].indexOf(&#39;+&#39;)!= &#39;-1&#39;)&lt;br /&gt;            {&lt;br /&gt;                results = results[1].replace(&#39;+&#39;,&#39; &#39;);&lt;br /&gt;                return results;&lt;br /&gt;            }&lt;br /&gt;            if(results[1].indexOf(&#39;%&#39;)!= &#39;-1&#39;)&lt;br /&gt;            {&lt;br /&gt;                results = results[1].replace(&#39;%20&#39;,&#39; &#39;);&lt;br /&gt;                return results;&lt;br /&gt;            }&lt;br /&gt;            else&lt;br /&gt;                return results[1];&lt;br /&gt;            &lt;br /&gt;        }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function getHost()&lt;br /&gt;{&lt;br /&gt;var url = window.location;&lt;br /&gt;var urlparts = url.split(&#39;/&#39;);&lt;br /&gt;var host = urlparts[0];&lt;br /&gt;return host;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function GetSiteUrl()&lt;br /&gt;{&lt;br /&gt;   var siteUrl = window.location.href;&lt;br /&gt;   var copyOfSiteUrl = siteUrl;&lt;br /&gt;   siteUrl = siteUrl.split(&quot;/&quot;);&lt;br /&gt;   var isSubSite = false;&lt;br /&gt;   var url = null;&lt;br /&gt;&lt;br /&gt;   if(siteUrl[3] == &#39;sites&#39;)&lt;br /&gt;   {&lt;br /&gt;      isSubSite = true;&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;   if(isSubSite)&lt;br /&gt;   {&lt;br /&gt;      copyOfSiteUrl = copyOfSiteUrl.split(&quot;sites/&quot;); &lt;br /&gt;      var subSiteName = copyOfSiteUrl[1].split(&quot;/&quot;);&lt;br /&gt;      url = copyOfSiteUrl[0] + &quot;sites/&quot; + subSiteName[0];&lt;br /&gt;      return url;&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;      copyOfSiteUrl = copyOfSiteUrl.split(&quot;/&quot;);&lt;br /&gt;      url = copyOfSiteUrl[0] + &quot;//&quot; + copyOfSiteUrl[2];&lt;br /&gt;      return url;&lt;br /&gt;   }&lt;br /&gt;}</description><link>http://vishalvaste.blogspot.com/2009/04/funtions-to-get-query-string-value-and.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-448317957716406476</guid><pubDate>Mon, 27 Apr 2009 07:15:00 +0000</pubDate><atom:updated>2009-04-27T12:49:25.466+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Event Handler</category><title>PreSaveAction to EditForm.aspx</title><description>The creators of that script added a “hook” for custom validation called PreSaveAction. This function gets called during the submit action but was never defined so we can create our own. We have a simple strategy: identify Tasks surfaced through our Linked Tasks web part and stop the submit action if Issue status = ‘Closed’ and number of Tasks &gt; 0. Translating that “simple” logic into javascript takes patience and testing. &lt;a href=&quot;http://www.endusersharepoint.com/?p=843&quot;&gt;Add the PreSaveAction to the EditForm.aspx page&lt;/a&gt;</description><link>http://vishalvaste.blogspot.com/2009/04/presaveaction-to-editformaspx.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-4277271747381588878</guid><pubDate>Mon, 27 Apr 2009 07:13:00 +0000</pubDate><atom:updated>2009-04-27T12:49:49.583+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Event Handler</category><title>Sample Event Handler to set Permissions</title><description>This is something I have been seeing the need for in the forums for quite some time, and today I found an hour to find this. A request is often made to have an event handler that automagically sets the permissions on a list item so that only the author of the item can edit it, while other people with contributor permissions on the library can only read it.Sometimes the logic is more complex, but I think &lt;a href=&quot;http://www.sharepoint-tips.com/2007/03/sample-event-handler-to-set-permissions.html&quot;&gt;this sample code should be enough to get anyone started&lt;/a&gt;!</description><link>http://vishalvaste.blogspot.com/2009/04/sample-event-handler-to-set-permissions.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2453580186845908170.post-2906071846949780362</guid><pubDate>Mon, 27 Apr 2009 07:08:00 +0000</pubDate><atom:updated>2009-04-27T12:50:07.351+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Event Handler</category><title>Creating &amp; Adding Event Handler</title><description>&lt;a href=&quot;http://farhanfaiz.wordpress.com/2007/12/31/creating-adding-an-event-handler/&quot;&gt;In this article&lt;/a&gt;, author has create an event handler that captures the events of the document library and add an entry in the cell of the document added. It can add an event handler using code or as a feature. In order to write an event handler, we will first create a sharepoint site and create a document library. We will, then, capture the events of the document library.</description><link>http://vishalvaste.blogspot.com/2009/04/creating-adding-event-handler.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item></channel></rss>