<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Quote of the Day Web Part, Reprised &#8211; Part 1</title>
	<atom:link href="http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/</link>
	<description>Innovation Matters &#124; SharePoint Server MVP &#124; ISSN 2210-9390</description>
	<lastBuildDate>Thu, 09 Feb 2012 05:22:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Bridgette Richards</title>
		<link>http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/comment-page-1/#comment-43115</link>
		<dc:creator>Bridgette Richards</dc:creator>
		<pubDate>Wed, 17 Feb 2010 20:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/#comment-43115</guid>
		<description>Waldek,
Greetings! I am experiencing a similar problem as Francis. I have imported the Webpart, and also have attempted to create it from scratch by copying the code with no success. I have followed the instructions in the article word for word.

It seems that it may not &quot;see&quot; the Quotes List. To keep it simple, I used the same naming conventions. I figured once I got it to work, I&#039;ll figure out how to change the names.

Here is the code in Source Editor within teh Quotes Script webpart:



jQuery.fn.extend({
random: function() {
return $(this[Math.floor(Math.random() * this.length)]);
}
});

var Imtech = Imtech &#124;&#124; {};
Imtech.QuoteOfTheDay = function(listName) {
var selector = &quot;table[class=ms-listviewtable][summary=&#039;&quot; + listName + &quot;&#039;] &gt; tbody &gt; tr&quot;;
var quote = { text: null, author: null, obj: null };
 
var renderQuote = function() {
quote.obj.parents(&quot;table:first&quot;).parents(&quot;td:first&quot;).html(&#039;&lt;blockquote&gt;&#039; + quote.quote + &#039;&#039; + quote.author + &#039;&lt;/blockquote&gt;&#039;)
}
 
this.init = function() {
var quotes = $(selector).not(&quot;:first&quot;);
quote.obj = $(quotes[0]);
quote.text = $(&quot;td:first&quot;, quote.obj).text();
quote.author = $(&quot;td:last&quot;, quote.obj).text();
renderQuote();
}
}
 
var quoteOfTheDay;
 
$(function() {
quoteOfTheDay = new Imtech.QuoteOfTheDay(&quot;Quotes&quot;);
quoteOfTheDay.init();
});


Your help is most appreciated. Thank you!</description>
		<content:encoded><![CDATA[<p>Waldek,<br />
Greetings! I am experiencing a similar problem as Francis. I have imported the Webpart, and also have attempted to create it from scratch by copying the code with no success. I have followed the instructions in the article word for word.</p>
<p>It seems that it may not &#034;see&#034; the Quotes List. To keep it simple, I used the same naming conventions. I figured once I got it to work, I&#039;ll figure out how to change the names.</p>
<p>Here is the code in Source Editor within teh Quotes Script webpart:</p>
<p>jQuery.fn.extend({<br />
random: function() {<br />
return $(this[Math.floor(Math.random() * this.length)]);<br />
}<br />
});</p>
<p>var Imtech = Imtech || {};<br />
Imtech.QuoteOfTheDay = function(listName) {<br />
var selector = &#034;table[class=ms-listviewtable][summary='" + listName + "'] &gt; tbody &gt; tr&#034;;<br />
var quote = { text: null, author: null, obj: null };</p>
<p>var renderQuote = function() {<br />
quote.obj.parents(&#034;table:first&#034;).parents(&#034;td:first&#034;).html(&#039;<br />
<blockquote>&#039; + quote.quote + &#034; + quote.author + &#039;</p></blockquote>
<p>&#039;)<br />
}</p>
<p>this.init = function() {<br />
var quotes = $(selector).not(&#034;:first&#034;);<br />
quote.obj = $(quotes[0]);<br />
quote.text = $(&#034;td:first&#034;, quote.obj).text();<br />
quote.author = $(&#034;td:last&#034;, quote.obj).text();<br />
renderQuote();<br />
}<br />
}</p>
<p>var quoteOfTheDay;</p>
<p>$(function() {<br />
quoteOfTheDay = new Imtech.QuoteOfTheDay(&#034;Quotes&#034;);<br />
quoteOfTheDay.init();<br />
});</p>
<p>Your help is most appreciated. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francis Ong</title>
		<link>http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/comment-page-1/#comment-27572</link>
		<dc:creator>Francis Ong</dc:creator>
		<pubDate>Mon, 07 Sep 2009 14:40:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/#comment-27572</guid>
		<description>Sorry i am not sure about debugging the JavaScript. But it happens when both slideshow &amp; quote of the day is running from the same page. Only the slideshow is working but not the quote of the day. Could it be something in the coding. I use exactly your source.</description>
		<content:encoded><![CDATA[<p>Sorry i am not sure about debugging the JavaScript. But it happens when both slideshow &amp; quote of the day is running from the same page. Only the slideshow is working but not the quote of the day. Could it be something in the coding. I use exactly your source.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/comment-page-1/#comment-27542</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Mon, 07 Sep 2009 05:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/#comment-27542</guid>
		<description>@Francis: I&#039;d suggest you try to debug the JavaScript to find out what&#039;s causing the problem. You can use Firebug for Firefox for that or Visual Studio for Internet Explorer. That should give you more idea of what the problem is and how to solve it.</description>
		<content:encoded><![CDATA[<p>@Francis: I&#039;d suggest you try to debug the JavaScript to find out what&#039;s causing the problem. You can use Firebug for Firefox for that or Visual Studio for Internet Explorer. That should give you more idea of what the problem is and how to solve it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francis Ong</title>
		<link>http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/comment-page-1/#comment-27533</link>
		<dc:creator>Francis Ong</dc:creator>
		<pubDate>Mon, 07 Sep 2009 01:11:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/#comment-27533</guid>
		<description>I realised it is having the problem when i have your other image-slideshow jquery running in the same page.

http://blog.mastykarz.nl/images-slideshow-sharepoint-2007-jquery/

How can i get the the image-slideshow &amp; quote of the day working together?</description>
		<content:encoded><![CDATA[<p>I realised it is having the problem when i have your other image-slideshow jquery running in the same page.</p>
<p><a href="http://blog.mastykarz.nl/images-slideshow-sharepoint-2007-jquery/" rel="nofollow">http://blog.mastykarz.nl/images-slideshow-sharepoint-2007-jquery/</a></p>
<p>How can i get the the image-slideshow &amp; quote of the day working together?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francis Ong</title>
		<link>http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/comment-page-1/#comment-27508</link>
		<dc:creator>Francis Ong</dc:creator>
		<pubDate>Sun, 06 Sep 2009 15:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/#comment-27508</guid>
		<description>Sorry but it still doesn&#039;t work.

This was what i did step by step:

1) Create List called &quot;Quotes&quot;
2) Have 2 columns, first &quot;Quote&quot;, second &quot;Author&quot;
3) Add Web Part List: Quotes
4) Add Web Part CEWP and put in your source in source editor as below-mentioned:



var Imtech = Imtech &#124;&#124; {};
Imtech.QuoteOfTheDay = function(listName) {
var selector = &quot;table[class=ms-listviewtable][summary=&#039;&quot; + listName + &quot;&#039;] &gt; tbody &gt; tr&quot;;
var quote = { text: null, author: null, obj: null };
 
var renderQuote = function() {
quote.obj.parents(&quot;table:first&quot;).parents(&quot;td:first&quot;).html(&#039;&lt;blockquote&gt;&#039; + quote.text + &#039;&#039; + quote.author + &#039;&lt;/blockquote&gt;&#039;)
}
 
this.init = function() {
var quotes = $(selector).not(&quot;:first&quot;);
quote.obj = $(quotes[0]);
quote.text = $(&quot;td:first&quot;, quote.obj).text();
quote.author = $(&quot;td:last&quot;, quote.obj).text();
renderQuote();
}
}
 
var quoteOfTheDay;
 
$(function() {
quoteOfTheDay = new Imtech.QuoteOfTheDay(&quot;Quotes&quot;);
quoteOfTheDay.init();
});


I cannot even see it replacing the Web Part List (Quotes) with first quote &amp; its author.

I even tried to change the view to &quot;Summary View&quot; but with no effect.

Would appreciate for more assistance.</description>
		<content:encoded><![CDATA[<p>Sorry but it still doesn&#039;t work.</p>
<p>This was what i did step by step:</p>
<p>1) Create List called &#034;Quotes&#034;<br />
2) Have 2 columns, first &#034;Quote&#034;, second &#034;Author&#034;<br />
3) Add Web Part List: Quotes<br />
4) Add Web Part CEWP and put in your source in source editor as below-mentioned:</p>
<p>var Imtech = Imtech || {};<br />
Imtech.QuoteOfTheDay = function(listName) {<br />
var selector = &#034;table[class=ms-listviewtable][summary='" + listName + "'] &gt; tbody &gt; tr&#034;;<br />
var quote = { text: null, author: null, obj: null };</p>
<p>var renderQuote = function() {<br />
quote.obj.parents(&#034;table:first&#034;).parents(&#034;td:first&#034;).html(&#039;<br />
<blockquote>&#039; + quote.text + &#034; + quote.author + &#039;</p></blockquote>
<p>&#039;)<br />
}</p>
<p>this.init = function() {<br />
var quotes = $(selector).not(&#034;:first&#034;);<br />
quote.obj = $(quotes[0]);<br />
quote.text = $(&#034;td:first&#034;, quote.obj).text();<br />
quote.author = $(&#034;td:last&#034;, quote.obj).text();<br />
renderQuote();<br />
}<br />
}</p>
<p>var quoteOfTheDay;</p>
<p>$(function() {<br />
quoteOfTheDay = new Imtech.QuoteOfTheDay(&#034;Quotes&#034;);<br />
quoteOfTheDay.init();<br />
});</p>
<p>I cannot even see it replacing the Web Part List (Quotes) with first quote &amp; its author.</p>
<p>I even tried to change the view to &#034;Summary View&#034; but with no effect.</p>
<p>Would appreciate for more assistance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/comment-page-1/#comment-27491</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Sun, 06 Sep 2009 07:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/#comment-27491</guid>
		<description>@Francis: the jQuery is inside the Web Part file. You can open it in Notepad and extract the jQuery from there.</description>
		<content:encoded><![CDATA[<p>@Francis: the jQuery is inside the Web Part file. You can open it in Notepad and extract the jQuery from there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francis Ong</title>
		<link>http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/comment-page-1/#comment-27489</link>
		<dc:creator>Francis Ong</dc:creator>
		<pubDate>Sun, 06 Sep 2009 03:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/#comment-27489</guid>
		<description>Could you share the jQuery for this CEWP?

I can&#039;t use import Web Part function in Sharepoint as the permission for that is not given.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Could you share the jQuery for this CEWP?</p>
<p>I can&#039;t use import Web Part function in Sharepoint as the permission for that is not given.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/comment-page-1/#comment-27475</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Sat, 05 Sep 2009 19:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/#comment-27475</guid>
		<description>@Francis: could you provide some more information about the issue you&#039;re experiencing while importing the Web Part?
As for an alternative: the above Web Part is a CEWP with jQuery</description>
		<content:encoded><![CDATA[<p>@Francis: could you provide some more information about the issue you&#039;re experiencing while importing the Web Part?<br />
As for an alternative: the above Web Part is a CEWP with jQuery</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francis Ong</title>
		<link>http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/comment-page-1/#comment-27470</link>
		<dc:creator>Francis Ong</dc:creator>
		<pubDate>Sat, 05 Sep 2009 16:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/quote-day-web-part-reprised-part-1/#comment-27470</guid>
		<description>Sry for the trouble. But i am having a little bit of problem. I can&#039;t use your quote of the day web part as i can&#039;t import web part.

Is there an other way to have quote of the day without the web part, etc like using CEWP (jquery)?

Please assist.

I have already downloaded your web part.</description>
		<content:encoded><![CDATA[<p>Sry for the trouble. But i am having a little bit of problem. I can&#039;t use your quote of the day web part as i can&#039;t import web part.</p>
<p>Is there an other way to have quote of the day without the web part, etc like using CEWP (jquery)?</p>
<p>Please assist.</p>
<p>I have already downloaded your web part.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

