Comments on: Quote of the Day Web Part, Reprised – Part 2 http://www.endusersharepoint.com/2009/01/15/quote-of-the-day-web-part-reprised-part-2/ No GeekSpeak on SharePoint 2007 WSS and MOSS Sat, 07 May 2011 23:41:50 -0500 http://wordpress.org/?v=2.8.6 hourly 1 By: Alex http://www.endusersharepoint.com/2009/01/15/quote-of-the-day-web-part-reprised-part-2/comment-page-2/#comment-98905 Alex Fri, 10 Sep 2010 16:24:25 +0000 http://www.endusersharepoint.com/?p=1199#comment-98905 openQuote + blockquote + quote.text + quote.author + /blockquote + closeQuote openQuote + blockquote + quote.text + quote.author + /blockquote + closeQuote

]]>
By: Alex http://www.endusersharepoint.com/2009/01/15/quote-of-the-day-web-part-reprised-part-2/comment-page-2/#comment-98904 Alex Fri, 10 Sep 2010 16:21:27 +0000 http://www.endusersharepoint.com/?p=1199#comment-98904 the code did not display correctly so here is an addendum to the above image code. I modified the code snippet below so it would display the css entry names and not render the code inside this forum: var renderQuote = function quote.obj.parents("table:first").parents("td:first").html <blockquote> + quote.text + quote.author + </blockquote> the code did not display correctly so here is an addendum to the above image code. I modified the code snippet below so it would display the css entry names and not render the code inside this forum:

var renderQuote = function

quote.obj.parents(”table:first”).parents(”td:first”).html

+ quote.text + quote.author +

]]>
By: Alex http://www.endusersharepoint.com/2009/01/15/quote-of-the-day-web-part-reprised-part-2/comment-page-2/#comment-98903 Alex Fri, 10 Sep 2010 16:17:55 +0000 http://www.endusersharepoint.com/?p=1199#comment-98903 I am trying to surround the quotation with a graphic image of an over-sized quote mark. Each end of the quotation would have an openQuote and a closeQuote. #openQuote{background-image:url('http://xxxxxxxxxx.transitchicago.com/xxxxxxxxx/Quote_24x24_Blue.jpg');} #closeQuote{background-image:url('http://xxxxxxxxxx.transitchicago.com/xxxxxxxxx/Quote_24x24_v2_Blue.jpg');} blockquote p { font: italic bold 1.2em/1.2 "Times New Roman" , serif; } blockquote p.author { font: normal 0.8em/1.2 sans-serif; color: #666; text-align: right; } Inside the javascript to render the quote I have added some new fieldnames for the CSS to apply the background-image to, however, the images never are displayed. var renderQuote = function() { quote.obj.parents("table:first").parents("td:first").html('<blockquote>' + quote.text + '' + quote.author + '</blockquote>') } You can see that there is an <blockquote> and <blockquote> at the beginning and end of the html. Thanks for the help. Alex I am trying to surround the quotation with a graphic image of an over-sized quote mark. Each end of the quotation would have an openQuote and a closeQuote.

#openQuote{background-image:url(’http://xxxxxxxxxx.transitchicago.com/xxxxxxxxx/Quote_24×24_Blue.jpg’);}
#closeQuote{background-image:url(’http://xxxxxxxxxx.transitchicago.com/xxxxxxxxx/Quote_24×24_v2_Blue.jpg’);}

blockquote p { font: italic bold 1.2em/1.2 “Times New Roman” , serif; }
blockquote p.author {
font: normal 0.8em/1.2 sans-serif;
color: #666;
text-align: right;
}

Inside the javascript to render the quote I have added some new fieldnames for the CSS to apply the background-image to, however, the images never are displayed.

var renderQuote = function() {

quote.obj.parents(”table:first”).parents(”td:first”).html(’

‘ + quote.text + ” + quote.author + ‘

‘)
}

You can see that there is an

and
at the beginning and end of the html.

Thanks for the help.
Alex

]]>
By: EndUserSharePoint http://www.endusersharepoint.com/2009/01/15/quote-of-the-day-web-part-reprised-part-2/comment-page-2/#comment-98902 EndUserSharePoint Fri, 10 Sep 2010 16:04:04 +0000 http://www.endusersharepoint.com/?p=1199#comment-98902 Alex - By my clock, it took you 14 minutes to figure that one out... not Mensa speed, but not bad :-) Glad it's working for you. -- Mark Alex – By my clock, it took you 14 minutes to figure that one out… not Mensa speed, but not bad :-)

Glad it’s working for you. — Mark

]]>
By: Alex http://www.endusersharepoint.com/2009/01/15/quote-of-the-day-web-part-reprised-part-2/comment-page-2/#comment-98900 Alex Fri, 10 Sep 2010 15:24:01 +0000 http://www.endusersharepoint.com/?p=1199#comment-98900 Oh Snap! The random quote operates on a daily basis displaying the same quote all day long, right? Ooopsy. If this is right then it appears the code is working correctly. Alex Oh Snap!
The random quote operates on a daily basis displaying the same quote all day long, right?
Ooopsy. If this is right then it appears the code is working correctly.

Alex

]]>
By: Alex http://www.endusersharepoint.com/2009/01/15/quote-of-the-day-web-part-reprised-part-2/comment-page-2/#comment-98899 Alex Fri, 10 Sep 2010 15:15:30 +0000 http://www.endusersharepoint.com/?p=1199#comment-98899 I removed the entries and added new ones for a total of 3. Now the middle entry is the only one displayed. Hmmmm... I copied the content from the code block above and pasted it "as-is" into a CEWP. I created a custom list with 2 fields: quotes and author. The quote appears fine except for the fact that it always displays the same one. Ugh. :( Alex I removed the entries and added new ones for a total of 3. Now the middle entry is the only one displayed. Hmmmm… I copied the content from the code block above and pasted it “as-is” into a CEWP. I created a custom list with 2 fields: quotes and author. The quote appears fine except for the fact that it always displays the same one.

Ugh. :(
Alex

]]>
By: Alex http://www.endusersharepoint.com/2009/01/15/quote-of-the-day-web-part-reprised-part-2/comment-page-2/#comment-98897 Alex Fri, 10 Sep 2010 15:07:18 +0000 http://www.endusersharepoint.com/?p=1199#comment-98897 I continue to receive only 1 of the quotes returned. Oddly enough, it is the 3rd quote out of 4 in my custom list. I originally had the other three named "Unknown" and the quote which is displaying was by an author called "Mother Goose". Could this be the problem? I did, however, change the author in the other three quotes to have unique author names, but it did not fix the issue. Any ideas? Alex I continue to receive only 1 of the quotes returned. Oddly enough, it is the 3rd quote out of 4 in my custom list. I originally had the other three named “Unknown” and the quote which is displaying was by an author called “Mother Goose”. Could this be the problem? I did, however, change the author in the other three quotes to have unique author names, but it did not fix the issue.

Any ideas?
Alex

]]>
By: debora clark http://www.endusersharepoint.com/2009/01/15/quote-of-the-day-web-part-reprised-part-2/comment-page-2/#comment-44679 debora clark Fri, 12 Mar 2010 01:31:37 +0000 http://www.endusersharepoint.com/?p=1199#comment-44679 I love you site and the information provide. I seem to miss a step. I down load the zip file. Created the qoutes web part, added the random qoute web part., changed the url to point to the min.js on my site. I have moved the random quote web part above and below the quote web part. What did I miss in the instructions. Can help me. thanks I love you site and the information provide. I seem to miss a step. I down load the zip file.
Created the qoutes web part, added the random qoute web part., changed the url to point to the min.js on my site. I have moved the random quote web part above and below the quote web part.
What did I miss in the instructions. Can help me. thanks

]]>
By: EndUserSharePoint http://www.endusersharepoint.com/2009/01/15/quote-of-the-day-web-part-reprised-part-2/comment-page-1/#comment-26551 EndUserSharePoint Sat, 30 Jan 2010 01:22:43 +0000 http://www.endusersharepoint.com/?p=1199#comment-26551 George - Should be good to go, now. -- Mark George – Should be good to go, now. — Mark

]]>
By: George W http://www.endusersharepoint.com/2009/01/15/quote-of-the-day-web-part-reprised-part-2/comment-page-1/#comment-26524 George W Fri, 29 Jan 2010 21:42:25 +0000 http://www.endusersharepoint.com/?p=1199#comment-26524 Hi all: I don't know why, but I can't see the code in the body of the article itself. Mark is kind enough to have a ZIP file of the code in the comments, but I would never have gotten this from the article itself. For what it's worth: there's only blank space visible between this section: ------------------------------------- Let’s see our code so far: And the results: ------------------------ Hi all:
I don’t know why, but I can’t see the code in the body of the article itself.
Mark is kind enough to have a ZIP file of the code in the comments, but I would never have gotten this from the article itself.

For what it’s worth: there’s only blank space visible between this section:
————————————-
Let’s see our code so far:

And the results:
————————

]]>