<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Seisay IT Solutions | </title>
	<atom:link href="https://seisayitsolutions.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://seisayitsolutions.com</link>
	<description>Office365 Consulting and Web Development</description>
	<lastBuildDate>Sat, 09 Mar 2024 17:37:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://seisayitsolutions.com/wp-content/uploads/2016/05/cropped-full-logo-1-32x32.png</url>
	<title>Seisay IT Solutions | </title>
	<link>https://seisayitsolutions.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Facebook Like Solution In SharePoint Using Javascript</title>
		<link>https://seisayitsolutions.com/facebook-like-solution-in-sharepoint-using-javascript/</link>
		
		<dc:creator><![CDATA[contact@seisayitsolutions.com]]></dc:creator>
		<pubDate>Sun, 15 Mar 2015 21:08:29 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Javascript]]></category>
		<guid isPermaLink="false">http://www.seisayitsolutions.com/?p=199</guid>

					<description><![CDATA[Description: A custom SharePoint solution for developing a Facebook Like business case to support user adoption in an organization.  The solution includes JavaScript, Client Side Object Model, and XSL.  No deploying of code between servers necessary. All files can be used in SharePoint Designer for...]]></description>
										<content:encoded><![CDATA[<p><strong>Description:</strong> A custom SharePoint solution for developing a Facebook Like business case to support user adoption in an organization.  The solution includes JavaScript, Client Side Object Model, and XSL.  No deploying of code between servers necessary. All files can be used in SharePoint Designer for either SharePoint 2010 or SharePoint 2013.  SharePoint 2013 offers JSLink to style list data if you choose not to use XSL to style list data.</p>
<p><strong>Details on Presentation:</strong></p>
<p><strong>Lists</strong><br />
Food Truck &#8211; columns to keep track of: the number of users who liked a submission, their names, an anonymous check box and a text field that is either updated with their name or “Anonymous”.</p>
<p>Comments &#8211; columns to keep track of: a lookup field to the Food Truck list, and comments multiple lines of text.<br />
Site Assets &#8211; contains JavaScript, XSL, and image files.</p>
<p><strong>Forms</strong></p>
<p>New Food Truck form &#8211; has input fields for Food Truck title, image, description, and Anonymous checkbox.  Uses JavaScript Object Model to add and update list item. This file is labeled <strong>AddNewFoodTruck.aspx</strong> in the zip file.</p>
<p>Add a Comment form &#8211; grabs the TruckID parameter in the URL and then auto selects lookup column value. This file is labeled <strong>CustomNewForm.aspx</strong> in the zip file.  This is just a New Form created from the Comments list and modified to automatically select the lookup value in the Comments list from the URL query string parameter. This blog was a greate resource for provided the Javascript to match up the lookup value from the URL: <a href="http://blogs.msdn.com/b/sharepointdesigner/archive/2007/06/13/using-javascript-to-manipulate-a-list-form-field.aspx">Using JavaScript to Manipulate a List Form Field</a></p>
<p><strong>Pages</strong></p>
<p>Home Page &#8211; Displays Food Trucks linked to a Details page.  The Food Trucks list view web parts are styled with XSL for a more visually appealing look. The XSL files are added in the XSL Link property of the Food Truck list with Chrome Type set to None. The web part on the left uses <strong>MostRecent.xsl</strong> and the web part on the right uses <strong>TopFive.xsl</strong> in the zip file.</p>
<p><a href="https://www.seisayitsolutions.com/wp-content/uploads/2015/10/HomePage.png"><img fetchpriority="high" decoding="async" class="alignnone wp-image-284" src="https://www.seisayitsolutions.com/wp-content/uploads/2015/10/HomePage.png" alt="HomePage" width="700" height="271" srcset="https://seisayitsolutions.com/wp-content/uploads/2015/10/HomePage.png 2158w, https://seisayitsolutions.com/wp-content/uploads/2015/10/HomePage-300x116.png 300w, https://seisayitsolutions.com/wp-content/uploads/2015/10/HomePage-1024x396.png 1024w, https://seisayitsolutions.com/wp-content/uploads/2015/10/HomePage-335x130.png 335w" sizes="(max-width: 700px) 100vw, 700px" /></a></p>
<p>Details page &#8211; Displays one Food Truck – title, image, description, a Like button and comments.  This page is styled with XSL and the Like button has JavaScript Object Model behind the scenes that updates list items.  There are four web parts on the page: one Food Truck list web part with a filtered view to only show one list item, one Comments list web part, and two Query String filter web parts to grab the FoodTruckID parameter in the URL and filters the lists accordingly.</p>
<p>The <strong>Truck.xsl</strong> file is set as the XSL Link web part property on the Food Truck list. This file also has a reference to <strong>Like.js</strong>, which calls function updateListItem() when someone clicks on the Like image.  <strong>Truck.xsl</strong> also appends the ID of the Food Truck to the Comments list, which is linked to <strong>CustomNewForm.aspx</strong>.</p>
<p><strong>Like.js</strong> has all the functions for capturing number of likes, who liked the submission, grabbing the current user&#8217;s name, which updates the list all using the Javascript Client Side Object Model.</p>
<p>The <strong>Comments.xsl</strong> file is set as the XSL Link web part property on the Comments list.</p>
<p><a href="https://www.seisayitsolutions.com/wp-content/uploads/2015/10/DetailsPage.png"><img decoding="async" class="alignnone wp-image-267" src="https://www.seisayitsolutions.com/wp-content/uploads/2015/10/DetailsPage.png" alt="DetailsPage" width="530" height="362" srcset="https://seisayitsolutions.com/wp-content/uploads/2015/10/DetailsPage.png 1359w, https://seisayitsolutions.com/wp-content/uploads/2015/10/DetailsPage-300x205.png 300w, https://seisayitsolutions.com/wp-content/uploads/2015/10/DetailsPage-1024x700.png 1024w, https://seisayitsolutions.com/wp-content/uploads/2015/10/DetailsPage-335x229.png 335w" sizes="(max-width: 530px) 100vw, 530px" /></a></p>
<p>This is how the solution comes together.  Enjoy!</p>
<p><!--



<p style="font-size: 9px;">Sources for graphics:
Food Trucks: http://foodtruckfiesta.com
Truck art: http://stoorie.com/footrucks/2014/02/clients-brand-message-coffee-sampling-food-truck/
Lemon Grass Source: http://www.washingtonian.com/blogs/wellbeing/nutrition/the-healthiest-and-worst-salads-at-various-dc-food-trucks.php
Far East Source: http://foodtruckfiesta.com/far-east-taco-grille-food-truck/
DC Pizza Source: http://foodtruckfiesta.com/dc-slices-food-truck/
Lobster Source: https://dcchic.wordpress.com/
Facebook Source: https://www.facebook.com

--></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
