

<?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>Gilles Ruppert &#187; jQuery</title>
	<atom:link href="http://latower.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://latower.com</link>
	<description>a.k.a. elduderino78</description>
	<lastBuildDate>Thu, 05 Aug 2010 00:59:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>jQuery list paginator plugin &#8211; Elpaginator</title>
		<link>http://latower.com/2009/01/jquery-list-paginator-plugin-elpaginator/</link>
		<comments>http://latower.com/2009/01/jquery-list-paginator-plugin-elpaginator/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 16:24:08 +0000</pubDate>
		<dc:creator>elduderino78</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://latower.com/2009/01/jquery-list-paginator-plugin-elpaginator/</guid>
		<description><![CDATA[I know it&#8217;s been a while. I started about 5 posts, but haven&#8217;t finished any of them&#8230;  Hopefully this makes up for it: as a treat for the new year, I thought a little jQuery plugin that I wrote would &#8230; <a href="http://latower.com/2009/01/jquery-list-paginator-plugin-elpaginator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I know it&#8217;s been a while. I started about 5 posts, but haven&#8217;t finished any of them&#8230; </p>
<p>Hopefully this makes up for it: as a treat for the new year, I thought a little jQuery plugin that I wrote would be handy for some people: please welcome Elpaginator!</p>
<h2>What it does:</h2>
<p>It looks for a <code>ul</code> or <code>ol</code> within a wrapper &amp; adds pagination depending on the maximum number of items specified.</p>
<h2>Features:</h2>
<ul>
<li>paginates if there are more items than the user specified</li>
<li>displays number of items left or pages, i.e. 1-10, 11-20, etc or 1, 2, etc</li>
<li>html of pagination is fully configurable (wrapper need to contain class of <code>page-list</code>!)</li>
<li>the number of the list item if ordered list is used is correct (uses start attribute that is deprecated, but there is no real alternative yet as IE6 &amp; 7 don&#8217;t support CSS for this yet)</li>
<li>support for <code>ul</code> &amp; <code>ol</code></li>
<li>very lightweight (less than 200 lines WITH lots of comments)</li>
</ul>
<p> </p>
<p>You can find the <a href="http://svn.latower.com/main/trunk/elpaginator/jquery.elpaginator.js">elpaginator script</a> &amp; a <a href="http://svn.latower.com/main/trunk/elpaginator/index.html">demo page</a> in <a href="http://svn.latower.com/main/trunk/elpaginator/index.html">my repository</a>.</p>
<h2>Options</h2>
<p>This is how you initialise the pagination:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#wrapper'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">elpaginator</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Possible Options are:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#wrapper'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">elpaginator</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
    MAX<span style="color: #339933;">:</span> <span style="color: #CC0000;">10</span><span style="color: #339933;">,</span>  <span style="color: #006600; font-style: italic;">// maximum number of items per pagination</span>
    list<span style="color: #339933;">:</span> <span style="color: #3366CC;">'ol'</span><span style="color: #339933;">,</span>   <span style="color: #006600; font-style: italic;">// whether it's an ul or ol. Default: ul</span>
    style<span style="color: #339933;">:</span> <span style="color: #3366CC;">'items'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// other value is pages -&gt; show 1-5 6-10, etc, or 1, 2,</span>
    paginationHTML<span style="color: #339933;">:</span> <span style="color: #3366CC;">'&lt;div class=&quot;pagination&quot;&gt;&lt;ul class=&quot;page-list&quot;&gt;&lt;/ul&gt;&lt;/div&gt;'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// HTML for the pagination. Is appended to the wrapper</span>
    paginationListItemHTML<span style="color: #339933;">:</span> <span style="color: #3366CC;">'&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;/a&gt;&lt;/li&gt;'</span> <span style="color: #006600; font-style: italic;">// HTML for the pagination items</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>A live example of it working can also be seen on the new <a href="http://www.topgear.com/uk/tv-show">Top Gear site</a> (look at the sidebar for the lap times table).</p>
]]></content:encoded>
			<wfw:commentRss>http://latower.com/2009/01/jquery-list-paginator-plugin-elpaginator/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>jQuery plugin autoInputValue &#8211; default input values made easy</title>
		<link>http://latower.com/2008/10/jquery-plugin-autoinputvalue-default-input-values-made-easy/</link>
		<comments>http://latower.com/2008/10/jquery-plugin-autoinputvalue-default-input-values-made-easy/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 22:33:27 +0000</pubDate>
		<dc:creator>elduderino78</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://latower.com/?p=6</guid>
		<description><![CDATA[We all know the problem: the designers are struggling to get the form elements in the space they have or they decide that having labels next to input fields is not really necessary&#8230; Instead the label is displayed inside the &#8230; <a href="http://latower.com/2008/10/jquery-plugin-autoinputvalue-default-input-values-made-easy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We all know the problem: the designers are struggling to get the form elements in the space they have or they decide that having labels next to input fields is not really necessary&#8230;<br />
Instead the label is displayed inside the input field &amp; supposed to disappear when the user clicks or focuses on the field.</p>
<p>I&#8217;ve come across this quite often lately, so I quickly put a little jQuery plugin together to make my life a bit easier.</p>
<p>It works on input fields and it works just like any other jQuery plugin.</p>
<p>All you need to do is call the plugin with the selectors you are interested in, i.e.<br />
<code>$('input:text.email').autoInputLabel();</code></p>
<p>The options are specified in an object literal &#038; can be:</p>
<ul>
<li><code>blurColor</code> &#8211; colour of the text when the label is displayed</li>
<li><code>focusColor</code> &#8211; colour of the active text, i.e. user input</li>
<li><code>value</code> &#8211; the label that should be displayed</li>
</ul>
<p>By default, the plugin displays the value of the <code>value</code> attribute. If there is none, it checks whether there has been a value provided by the user. Otherwise it looks for the label associated with the input field (that is probably hidden, otherwise why would you use the plugin?). The label needs to be associated to the input field with the <code>for</code> attribute.</p>
<p>The plugin only works on <code>&lt;input type="text"&gt;</code> fields.</p>
<p>You can <strong><a href="http://svn.latower.com/main/trunk/autoInputLabel">download the latest version from my public svn repository</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://latower.com/2008/10/jquery-plugin-autoinputvalue-default-input-values-made-easy/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
