<?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>All Marked Up &#187; projects</title>
	<atom:link href="http://allmarkedup.com/journal/tag/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://allmarkedup.com/journal</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 22 Aug 2010 15:33:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery Event-Driven Pagination plugin &amp; more</title>
		<link>http://allmarkedup.com/journal/2010/02/jquery-event-driven-pagination-plugin-more/</link>
		<comments>http://allmarkedup.com/journal/2010/02/jquery-event-driven-pagination-plugin-more/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 17:00:28 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://allmarkedup.com/journal/?p=540</guid>
		<description><![CDATA[I have just released a replacement for my Quick Paginate jQuery plugin &#8211; it has similar functionality but uses a custom event-driven API for much more flexibility! It&#8217;s been re-thought and re-written from the ground up, and although the documentation is still a bit lacking there are a few demos up that should help to get [...]]]></description>
			<content:encoded><![CDATA[<p>I have just released a replacement for my Quick Paginate jQuery plugin &#8211; it has similar functionality but uses a custom event-driven API for much more flexibility! It&#8217;s been re-thought and re-written from the ground up, and although the documentation is still a bit lacking there are a <a href="http://projects.allmarkedup.com/jquery_evtpaginate/demo_basic.html">few demos</a> up that should help to get you started.</p>
<p><a href="http://projects.allmarkedup.com/jquery_evtpaginate/index.php">View the documentation and download the Event-driven Pagination plugin here</a></p>
<p>I have also decided put up some links to some of my undocumented and alpha/beta code on the <a href="http://projects.allmarkedup.com/">landing page of my projects area</a>. Feel free to have a poke around but don&#8217;t be surprised if what you find there is a little on the buggy side!</p>
]]></content:encoded>
			<wfw:commentRss>http://allmarkedup.com/journal/2010/02/jquery-event-driven-pagination-plugin-more/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>jQuery URL Toolbox *beta*</title>
		<link>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/</link>
		<comments>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 21:13:44 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://allmarkedup.com/journal/?p=330</guid>
		<description><![CDATA[I have been working on a jQuery plugin (well actually a self-contained set of plugins) that extends the capabilites of my jQuery URL Parser. I&#8217;m calling it a &#8216;URL Toolbox&#8217; as it does everything the URL parser does (i.e. retrieving various bits of any URL string) but also allows you to set parts of URL [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working on a jQuery plugin (well actually a self-contained set of plugins) that extends the capabilites of my jQuery URL Parser. I&#8217;m calling it a &#8216;URL Toolbox&#8217; as it does everything the URL parser does (i.e. retrieving various bits of any URL string) but also allows you to <em>set</em> parts of URL strings, link hrefs, form actions etc, amongst other things.</p>
<p>UPDATE (22.01.10) &#8211; I have now removed the $.observeUrl() function as I felt it was not really in line with the core idea behind the plugin. For those needing similar functionality I would highly recommend Ben Alman&#8217;s <a href="http://benalman.com/projects/jquery-hashchange-plugin/">hashchange plugin</a>. New version also includes a number of bugfixes (thanks to Pavol, Eugene et al.). Proper demos and docs coming soon I hope! :-)</p>
<p><del datetime="2010-01-22T09:21:44+00:00">It also includes a function, $.observeUrl(), that once called &#8216;listens&#8217; for changes to the document URL hash fragment, and triggers a custom jquery event, &#8216;hash:change&#8217; whenever the hash portion of the URL changes. The plugin includes a somewhat modified version of the <a href="http://www.mikage.to/jquery/jquery_history.html">jQuery History Plugin</a> to enable full back/forwards/history support for hash changes, and will hopefully make it pretty trivial to include full bookmarking and history support in AJAX based apps/sites .</del></p>
<p>The plugin is still <em>very</em> beta, but I thought I would link to the current version of it here anyway for those that are feeling brave and want to have a play around.</p>
<p><a href="http://projects.allmarkedup.com/jquery_url_toolbox/jquery.url_toolbox.js">Download the jQuery URL Toolbox beta</a></p>
<p>Some very quick pointers on how to use it are included below &#8211; once I have tested it further I will move it over to the projects area of my site and get some proper documentation together.</p>
<h2>General usage:</h2>
<ol>
<li>Use  <code>var myUrl = $(element).url()</code> to grab an element&#8217;s  URL and return a special &#8216;URL&#8217; object. (<code>a</code>, <code>form</code>, <code>img</code>, <code>base</code>, <code>link</code> and <code>iframe</code> elements are supported, and using &#8216;document&#8217; (no quotes) as the selector will return a URL object based on the current page&#8217;s URL)</li>
<li>Then use <code>myUrl.attr('theAttr')</code> to return any part of the URL, where &#8216;theAttr&#8217; can be any one of: source, protocol, host, port, query, file, hash or path.</li>
<li>If you include a second argument to the attr() method &#8211; i.e. something like <code>myUrl.attr('path', '/myNewPath/')</code>, then it will set the value of that part of the URL to the value of the second argument. Whatever the URL of element the initial <code>url()</code> function was called on will be updated accordingly. If the document URL was used (via <code>$(document).url()</code>) then the location will be changed accordingly, normally resulting in a page refresh.</li>
<li>Doing a <code>.toString()</code> on the URL object at any time will return the current string representation of the URL.</li>
<li>The <code>.segment(i)</code> method (where &#8216;i&#8217; is the segment number, starting from zero) will return the corresponding segment from the URL. Including a second parameter will set that segment.</li>
<li>The <code>.param('key')</code> method (where &#8216;key&#8217; is the query string key) will return the corresponding value of the suppied key in the URL query (GET) string, if there is one. Including a second parameter will set that parameter.</li>
<li>If you have a hash fragment that consists of segments, like &#8216;#/part1/part2/&#8217; then you can get/set those segments using the <code>hashSegment()</code> method, which works exactly like the <code>segment()</code> one.</li>
<li>Similarly if you have a hash fragment that looks like a query string, the parts can be get/set using the <code>hashParam()</code> method.</li>
</ol>
<h2><span style="text-decoration: line-through;">Watching for hash changes in the document&#8217;s URL:</span></h2>
<ol>
<li><span style="text-decoration: line-through;">Calling the <code>$.observeUrl()</code> function in your code will result in a custom &#8216;hash:changed&#8217; event being triggered on the document any time the URL hash fragment is updated.</span></li>
<li><span style="text-decoration: line-through;">It will also ensure that any changes to the URL hash fragment are correctly recorded in the browser&#8217;s history (&#8216;fixed&#8217; for all browsers) so that the back/forwards buttons can be used correctly.</span></li>
<li><span style="text-decoration: line-through;">You can then set up you app to respond to hash changes by listening out for the hash:change event on the document, eg. <code>$(document).bind('hash:change', function(e, hash){ doSomething() }</code></span></li>
</ol>
<p>A lot to take in but I will try to get together some more comprehensive and less confusing documentation in the near future!</p>
<p>Any bugs, suggestions or otherwise please email me at mark[at]allmarkedup.com for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>jQuery Quick Pagination plugin</title>
		<link>http://allmarkedup.com/journal/2008/10/jquery-quick-pagination-plugin/</link>
		<comments>http://allmarkedup.com/journal/2008/10/jquery-quick-pagination-plugin/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 21:47:20 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://allmarkedup.com/?p=144</guid>
		<description><![CDATA[I have just added a quick, simple jQuery pagination plugin to my projects area.
It basically allows you to paginate any collection of elements on the page, adding very simple prev / next links (as well as a &#8216;page&#8217; counter if required) to allow navigation.
I often use this to paginate a list of news articles, or [...]]]></description>
			<content:encoded><![CDATA[<p>I have just added a quick, simple <a href="http://projects.allmarkedup.com/jquery_quick_paginate/">jQuery pagination plugin</a> to my <a href="http://projects.allmarkedup.com/">projects area</a>.</p>
<p>It basically allows you to paginate any collection of elements on the page, adding very simple prev / next links (as well as a &#8216;page&#8217; counter if required) to allow navigation.</p>
<p>I often use this to paginate a list of news articles, or as a very simple way to throw together a little &#8217;slideshow&#8217; (by paginating through images with the &#8216;perpage&#8217; setting set to 1).</p>
<p>It can paginate pretty much any collection of elements (of mixed types if required), including images, divs, elements in an unordered list etc (ordered list li&#8217;s don&#8217;t work well &#8211; try it and see why!).</p>
<p>Once again, I&#8217;ve kinda rushed it up there so if you spot any bugs or mistakes in the documentation etc, just drop a comment below and I will look at it asap.</p>
<p><a href="http://projects.allmarkedup.com/jquery_quick_paginate/">Check the plugin out here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://allmarkedup.com/journal/2008/10/jquery-quick-pagination-plugin/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>jQuery URL Parser v1.0</title>
		<link>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/</link>
		<comments>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 09:35:18 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://allmarkedup.com/?p=85</guid>
		<description><![CDATA[This jQuery URL Parser is a little plugin that I wrote a while back and have now decided to release properly. It's based on Steven Levithian's regex-based URI parser, and allows you to quickly and painlessly access pretty much any bit of information within the URL.]]></description>
			<content:encoded><![CDATA[<p>This jQuery URL Parser is a little plugin that I wrote a while back and have now decided to release properly. It&#8217;s based on <a href="http://blog.stevenlevithan.com/archives/parseuri">Steven Levithan&#8217;s regex-based URI parser</a>, and allows you to quickly and painlessly access pretty much any bit of information within the URL.</p>
<p>Why would you need to pull information out of the URL? Well there are lots of potential reasons. I have been using it on a CodeIgniter-based CMS project recently where each page initially loads the same one JS file, which in turn selectively loads others depending on the URL (roughly mirroring the way CodeIgniter loads different controllers by parsing the URL segments). I also often use it just to get the base URL of the site so that I can use absolute URL references in my JavaScript, without having to change anything when the site moves domains &#8211; say from the testing to the production server. It also offers an easy way to access query string parameters for use in your scripts, and much more.</p>
<p>You can <strong>download the plugin</strong> from the <a href="http://projects.allmarkedup.com/jquery_url_parser/">project page</a>, together with the documentation etc.</p>
<p>I&#8217;ll post up any updates to the plugin here, so grab the <a href="http://allmarkedup.com/feed/">RSS feed</a> if you want to stay updated. For bug reports or feature requests please visit the jQuery plugins page at <a href="http://plugins.jquery.com/project/url_parser">http://plugins.jquery.com/project/url_parser</a>, or if you have any other questions or queries, please drop me an email at mark[at]allmarkedup[dot]com and I will do my best to get back to you as soon as I can &#8211; but I&#8217;m pretty busy at the moment so please be patient!</p>
]]></content:encoded>
			<wfw:commentRss>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
	</channel>
</rss>
