<?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>Greg Smart &#187; jQuery</title>
	<atom:link href="http://www.gregorysmart.com/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gregorysmart.com</link>
	<description>Web development, modx, css, standards, managed web hosting, business class email solutions.</description>
	<lastBuildDate>Sun, 15 Jan 2012 06:33:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MODx: documentMan and jQuery portfolio</title>
		<link>http://www.gregorysmart.com/2009/02/27/modx-documentman-and-jquery-portfolio/</link>
		<comments>http://www.gregorysmart.com/2009/02/27/modx-documentman-and-jquery-portfolio/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 16:05:12 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[MODx]]></category>
		<category><![CDATA[portfolio]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/?p=308</guid>
		<description><![CDATA[Over the recent months we have been hard at work here at Pleth, LLC redesigning our logo and completely rebuilding and reorganizing our website while converting the back-end to MODx. One of the most debated portions of our site has always been our portfolio section. There are many &#8220;dazzling&#8221; ways to present a portfolio, but [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.pleth.com/portfolio.htm" rel="external" title="Pleth Portfolio"><img class="float-left" src="http://www.gregorysmart.com/images/pleth_port.jpg" alt="Pleth Portfolio" border="0" /></a>Over the recent months we have been hard at work here at <a title="Pleth," rel="external" href="http://www.pleth.com">Pleth, LLC</a> redesigning our logo and completely rebuilding and reorganizing our website while converting the back-end to MODx. One of the most debated portions of our site has always been our portfolio section. There are many &#8220;dazzling&#8221; ways to present a portfolio, but for us finding the best method for displaying the sheer volume of our work  has always been a priority. So, when I ran across this <a title="Trevor davis" rel="external" href="http://net.tutsplus.com/tutorials/javascript-ajax/creating-a-filterable-portfolio-with-jquery/">Trevor Davis</a> article on a filterable, jQuery driven portfolio technique I knew we had found our candidate. With a little tweaking this solution would blend very well with the <a title="documentMan snippet" href="http://www.gregorysmart.com/2008/11/18/documentman-modx-document-management-snippet/">documentMan snippet</a> I have written about on other occasions. Now that our site rebuild is complete you can see the <a title="Pleth Portfolio" rel="external" href="http://www.pleth.com/portfolio.htm">finished portfolio</a> I am describing.</p>
<h4>Goal</h4>
<p>Integrate the documentMan snippet and a jQuery portfolio solution to provide a solution that will allow projects to be added to it by only uploading a screenshot image into a given directory with the directories serving as categories.</p>
<h4>Files</h4>
<ul>
<li><a title="jQuery 1.3.1" href="http://www.gregorysmart.com/downloads/1.3.1-jquery.js">jQuery 1.3.1</a></li>
<li><a title="Framework" href="http://www.gregorysmart.com/downloads/framework.js">Framework</a></li>
<li><a title="documentMan Snippet" href="http://www.gregorysmart.com/downloads/documentMan_portfolio.txt">documentMan Snippet</a></li>
<li><a title="documentMancontent Snippet" href="http://www.gregorysmart.com/downloads/documentMancontent.txt">documentMancontent Snippet</a></li>
</ul>
<h4>Execution</h4>
<ul>
<li>Place the jQuery and Framework files in your assets/js directory and then call them into the head of your page.</li>
<li>Create a snippet with the code provided in the documentMan_portfolio.txt file above.</li>
<li>Create another snippet with the code provided in the documentMancontent.txt file above. This snippet aggregates all of the list items generated by the documentMan calls for each category.</li>
<li>Create the page where your portfolio will live and place code similiar to this in that document:
<pre>&lt;div id="container"&gt;
{{portfolioCats}}
&lt;ul id="portfolio"&gt;
[[docMancontent?]]
&lt;/ul&gt;

&lt;/div&gt;</pre>
</li>
<li>Now, create sub-pages under the portfolio in the directory tree. On each page you will place a snippet call associated with a category. This snippet only creates the list items of the greater unordered list that drives the presentation of the portfolio script. As you can see in the code the javascript selector is driven from the directory name. The {{portfolioCats}} HTML chunk contains the category code (unordered list) and at present must be hand coded and must match you directories. Make sure you select (blank) beside &#8216;Uses Template&#8217; on these pages.
<pre>&lt;ul id="filter"&gt;
&lt;li &gt;&lt;a href="#"&gt;all&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;category1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;category2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;category3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;category4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;category5&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;category6&lt;/a&gt;&lt;/li&gt;
&lt;li class="last"&gt;&lt;a href="#"&gt;category7&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>
<p>Each of these will exist in tandem with a directory in assets/images.</p>
<pre>[[documentMan? &amp;Location=`category1`]]</pre>
</li>
<h4>The Rest of It</h4>
<p>It is important to note that this incarnation of the documentMan snippet derives all of the list item and link data from the directory names and the individual images names. So, what must happen is that each of the image names must be structured like: projecturl.com.jpg. Otherwise your links won&#8217;t be created appropriately.</p>
<p>As I mentioned above, the end result is a nicely presented portfolio that can be added to quickly and easily by simply uploading a new project screenshot into the appropriate directory.</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2009/02/27/modx-documentman-and-jquery-portfolio/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>jQuery easySlider &amp; MODx Ditto posts</title>
		<link>http://www.gregorysmart.com/2009/01/14/jquery-easyslider-modx-ditto-posts/</link>
		<comments>http://www.gregorysmart.com/2009/01/14/jquery-easyslider-modx-ditto-posts/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 15:01:11 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[ditto]]></category>
		<category><![CDATA[MODx]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/?p=167</guid>
		<description><![CDATA[This solution came by way of Alen Grakalic at CSS Globe. I have been keeping an eye our for a method of presenting Ditto (which is a MODx document aggregator) posts without taking up too much real estate on a Chamber of Commerce site. Once I ran across Grakalic&#8217;s easySlider. jQuery-driven solution I realized that [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="external" href="http://cssglobe.com/post/3783/jquery-plugin-easy-image-or-content-slider">This solution</a> came by way of Alen Grakalic at <a rel="external" href="http://cssglobe.com/">CSS Globe</a>.</p>
<p><img class="float-left" src="http://www.gregorysmart.com/images/modx_snippet.jpg" alt="Modx, Ditto and easySlider" />I have been keeping an eye our for a method of presenting <a rel="external" href="http://wiki.modxcms.com/index.php/Ditto">Ditto </a>(which is a <a rel="external" href="http://modxcms.com/">MODx</a> document aggregator) posts without taking up too much real estate on a Chamber of Commerce site. Once I ran across Grakalic&#8217;s easySlider. jQuery-driven solution I realized that it could be utilized for such a purpose. I have tried to outline my process below. As long as you are fairly familiar with the inner workings of the MODx application framework it ought to be a snap.</p>
<h4>Download Files (Step 1)</h4>
<ul>
<li><a href="http://www.gregorysmart.com/downloads/easySlider.zip">easySlider</a></li>
</ul>
<h4>Create Ditto Output (Step 2)</h4>
<p>If you aren&#8217;t familiar with Ditto, it is a snippet inside of MODx that allows you to aggregate and present document lists and content quickly and easily. The presentation drives off of a Chunk inside of MODx that serves as an HTML template. Since easySlider uses an unordered list all you need to do is create a template like the one below that generates the list items:</p>
<pre>&lt;li&gt;
&lt;div id="slidertitle"&gt;&lt;a href="[~[+id+]~]" title="[+title+]"&gt;[+title+]&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;[+summary+]&lt;/p&gt;
&lt;div id="sliderfull"&gt;&lt;a href="[~[+id+]~]" title="[+title+]"&gt;Full Article...&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;</pre>
<p>You then call in the template from the Ditto snippet call, something like:</p>
<pre>[!Ditto? &amp;tpl=`ditto_easySlider`!]</pre>
<h4>Place easySlider (Step 3)</h4>
<p>Give you div container an id of &#8216;slider&#8217; and then place the appropriate call ins in the header of your document:</p>
<pre>&lt;script type="text/javascript" src="[(site_url)]assets/js/jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="[(site_url)]assets/js/easySlider.packed.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
	$(document).ready(function(){
		$("#slider").easySlider({
			prevText:'&lt;&lt; Previous',
			nextText:'Next &gt;&gt;',
			orientation:'horizontal'
		});
	});
&lt;/script&gt;</pre>
<h4>Enjoy (Step4)</h4>
<p>That&#8217;s really all there is to it. Here is <a href="http://www.mybatesville.org/visit-batesville-arkansas.php" rel="external">my implementation</a> of this solution. Part of our goal here was to present the posts as time sensitive articles while promoting community involvement by encouraging chamber members to submit their own area specific articles.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2009/01/14/jquery-easyslider-modx-ditto-posts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>jQuery Tutorials</title>
		<link>http://www.gregorysmart.com/2008/12/14/jquery-tutorials/</link>
		<comments>http://www.gregorysmart.com/2008/12/14/jquery-tutorials/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 21:34:54 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/?p=137</guid>
		<description><![CDATA[Jeffrey over at Theme Forest has been posting these video tutorials for jQuery beginners. I have been using jQuery quite a bit over the last year, but really haven&#8217;t run across a good resource describing how to write the script statements driving the library. It is definitely worth sharing.]]></description>
			<content:encoded><![CDATA[<p>Jeffrey over at <a rel="external" href="http://blog.themeforest.net/">Theme Forest</a> has been posting these video tutorials for jQuery beginners. I have been using jQuery quite a bit over the last year, but really haven&#8217;t run across a good resource describing how to write the script statements driving the library. It is definitely worth sharing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2008/12/14/jquery-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Feed Menu</title>
		<link>http://www.gregorysmart.com/2008/10/06/jquery-feed-menu/</link>
		<comments>http://www.gregorysmart.com/2008/10/06/jquery-feed-menu/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 13:05:37 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Feeds]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/?p=96</guid>
		<description><![CDATA[I recently came across this jQuery Feed Menu link and thought it was worth sharing. As we completed the development last month on the University of Arkansas Community College at Batesville website we began to get all of the feeds and feed links in order. As I worked through this process I noticed that if [...]]]></description>
			<content:encoded><![CDATA[<p>I recently came across this <a href="http://www.komodomedia.com/samples/feed_menu/" rel="external">jQuery Feed Menu</a> link and thought it was worth sharing. As we completed the development last month on the <a href="http://www.uaccb.edu" rel="external">University of Arkansas Community College at Batesville</a> website we began to get all of the feeds and feed links in order. As I worked through this process I noticed that if you have more than two or three feeds to deal with that we didn&#8217;t have a good system for managing the feed links.</p>
<p>Although I haven&#8217;t tested this at all, everything appears to be in order and might offer a more elegant solution for managing multiple feeds links.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2008/10/06/jquery-feed-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Follow up: Using jCarousel with MODx</title>
		<link>http://www.gregorysmart.com/2008/05/15/follow-up-using-jcarousel-with-modx/</link>
		<comments>http://www.gregorysmart.com/2008/05/15/follow-up-using-jcarousel-with-modx/#comments</comments>
		<pubDate>Thu, 15 May 2008 21:20:46 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[jcarousel]]></category>
		<category><![CDATA[MODx]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/?p=31</guid>
		<description><![CDATA[This is a follow up post from &#8220;Using jCarousel with MODx&#8220;. Thanks to BobRay and smashingred over in the MODx forums for their help on this. What we have done is taken a site utilizing a custom MODx snippet, coupled with the jQuery, jCarousel photo gallery script and created a photo gallery that should require [...]]]></description>
			<content:encoded><![CDATA[<p>This is a follow up post from &#8220;<a href="http://www.gregorysmart.com/2008/05/07/using-jcarousel-with-modx/">Using jCarousel with MODx</a>&#8220;. Thanks to <a rel="external" href="http://modxcms.com/forums/index.php/topic,25618.0.html">BobRay and smashingred over in the MODx forums</a> for their help on this.</p>
<p>What we have done is taken a site utilizing a custom <a rel="external" href="http://www.modxcms.com">MODx</a> snippet, coupled with the jQuery, <a rel="external" href="http://sorgalla.com/jcarousel/">jCarousel</a> photo gallery script and created a photo gallery that should require a minimal skill level to manage.</p>
<h4>The Challenge</h4>
<p>As mentioned in my <a href="http://www.gregorysmart.com/2008/05/07/using-jcarousel-with-modx/">previous post</a> I was able to take MODx and jCarousel and produce an easy to use photo gallery that only needed images and an unordered list to populate the script content. Once the initial phase of the site build was complete, I realized that by creating a MODx snippet we could dynamically create this unordered list by only placing and removing images in a specific directory. In my opinion this would further simplify the process for adding and removing images from the gallery.</p>
<h4>The Solution</h4>
<p>A MODx snippet was created (<a href="http://www.gregorysmart.com/downloads/gallery.txt">Here is the snippet code.</a>). In order to replicate this just create a snippet in MODx named &#8216;directory&#8217; and then call it in where you want the gallery placed as [!directory? &#038;Location=`yourdirectory`!]. Now the assumption here is that you are working with images inside of the &#8216;assets/images&#8217; directory of Modx. Of course the jCarousel code is necessary as well. <a rel="external" href="http://www.deltagrainbag.com/photo-gallery.html">You can see the gallery snippet in action here</a>. </p>
<p>NOTE: There is a slightly different jCarousel version for placement of <a href ="http://sorgalla.com/projects/jcarousel/examples/static_multiple.html" rel="external">multiple carousels on a single page</a>.</p>
<h4>More Possibilities</h4>
<p>We are looking at the possibility of using this for more than just image galleries. This would likely require more extensive work with the snippet and would include the use of another snippet variable to denote the type and location of the document directory in question.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2008/05/15/follow-up-using-jcarousel-with-modx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using jCarousel with MODx</title>
		<link>http://www.gregorysmart.com/2008/05/07/using-jcarousel-with-modx/</link>
		<comments>http://www.gregorysmart.com/2008/05/07/using-jcarousel-with-modx/#comments</comments>
		<pubDate>Wed, 07 May 2008 15:33:18 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jcarousel]]></category>
		<category><![CDATA[MODx]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/?p=29</guid>
		<description><![CDATA[As I begin writing this post I have added the category jQuery to my blog. Although this is an area in which my skill level is the least developed I believe that the use of JavaScript and JavaScript Libraries will take on a increasingly important role in Pleth, LLC&#8217;s future project developments. During the creation [...]]]></description>
			<content:encoded><![CDATA[<p>As I begin writing this post I have added the category <a rel="external" href="http://jquery.com/">jQuery</a> to my blog. Although this is an area in which my skill level is the least developed I believe that the use of JavaScript and JavaScript Libraries will take on a increasingly important role in <a rel="external" href="http://www.pleth.com">Pleth, LLC&#8217;s</a> future project developments.</p>
<p>During the creation of a new agriculture site I recently discovered the <a rel="external" href="http://sorgalla.com/jcarousel/">jCarousel</a> jQuery plugin. This creates a flexible little photo gallery that can be completely styled to match your surrounding site. I have also been pleasantly surprised to discover that when used within the <a rel="external" href="http://modxcms.com/">MODx Framework</a> it allows us to create a photo gallery that can be easily updated by a client through the CMS.</p>
<h4>How It&#8217;s Done</h4>
<p>First of all download the jcarousel.zip file from the site site mentioned above. You will also need to choose which Static, Dynamic, or Special version of jCarousel that you would like to use. I am referencing the <a rel="external" href="http://sorgalla.com/projects/jcarousel/examples/static_simple.html">Static, Simple Carousel</a> in this example. Unzip the file and upload it to your server, the entire jQuery library is contained within the download.</p>
<p>Next, let&#8217;s switch to Modx and create a Template Variable (TV) named jQuery [*jQuery*] that will reside within the head tags of your site. The use of the TV is not an absolute necessity as you can simply place the CSS call-ins and JavaScript code directly in the header chunk or relevant template. I opted for this approach since the all of the code necessary to create and display my gallery with only be loaded specifically on that gallery page. The &#8220;Tango&#8221; skin files, in the download, were modified to change the look of the gallery.</p>
<p>The code for an unordered list was then placed in the content area of the page (this is all the code that is required to display the gallery). Each list item tag contains an image reference. The script simply orders the list items and then displays them one at a time with each click of the mouse.</p>
<p>The real beauty of this combination is that the end user can, with a little instruction, be taught to upload an image through the MODx admin and then add another list item to that gallery page. This left us with the possibility of a completely self-managed photo gallery solution.</p>
<h4>Possibilities</h4>
<p>I am also planning on looking into a modification that will dynamically generate the unordered list items based solely on the contents of a target directory. This would allow for a much simpler, client-side process since they would only have to upload images to a directory to add to their site&#8217;s online gallery. After completing some rudimentary testing it appears that this can be used to display text as well as images. This makes jCarousel as an interesting option for displaying general content as well.<br />
<a href="http://www.gregorysmart.com/2008/05/15/follow-up-using-jcarousel-with-modx/">The follow up to this post is here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2008/05/07/using-jcarousel-with-modx/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

