<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Serialize function for Mootools Sortables</title>
	<link>http://techblog.billkrueger.com/2006/11/09/serialize-function-for-mootools-sortables/</link>
	<description>A place to share thoughts and ideas on new or emerging web technologies</description>
	<pubDate>Fri, 30 Jul 2010 05:38:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: Club Penguin</title>
		<link>http://techblog.billkrueger.com/2006/11/09/serialize-function-for-mootools-sortables/#comment-15392</link>
		<pubDate>Sun, 25 Jul 2010 02:38:43 +0000</pubDate>
		<guid>http://techblog.billkrueger.com/2006/11/09/serialize-function-for-mootools-sortables/#comment-15392</guid>
					<description>Hi , thank you for sharing the informations.</description>
		<content:encoded><![CDATA[<p>Hi , thank you for sharing the informations.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Arya Schellemberg</title>
		<link>http://techblog.billkrueger.com/2006/11/09/serialize-function-for-mootools-sortables/#comment-12993</link>
		<pubDate>Wed, 17 Feb 2010 12:52:32 +0000</pubDate>
		<guid>http://techblog.billkrueger.com/2006/11/09/serialize-function-for-mootools-sortables/#comment-12993</guid>
					<description>I read your blog and I found it very interesting and thought it might be nice if we became better acquainted. We are a new Search Engine company and our aim with SortFix is to help users get more accurate answers, faster, and make the search process a more efficient and enjoyable one.</description>
		<content:encoded><![CDATA[<p>I read your blog and I found it very interesting and thought it might be nice if we became better acquainted. We are a new Search Engine company and our aim with SortFix is to help users get more accurate answers, faster, and make the search process a more efficient and enjoyable one.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David B.</title>
		<link>http://techblog.billkrueger.com/2006/11/09/serialize-function-for-mootools-sortables/#comment-275</link>
		<pubDate>Wed, 19 Sep 2007 19:00:22 +0000</pubDate>
		<guid>http://techblog.billkrueger.com/2006/11/09/serialize-function-for-mootools-sortables/#comment-275</guid>
					<description>The current mootools does have a serialize function now. finding tutorials to get this function to return a serialized version of the ID's and not a set of numbers 0-(#elements to sort) was a bit difficult though.

in my code I used a table to sort.

var mySort = new Sortables($('table'), {
	onComplete: function() {
		alert(this.serialize(function(el) {
			return el.id;
		}));
	}
});

then after you sort your 'table' this will return a comma separated string of the id's you had in your tr tags of your table.

This is rather basic, but it took me a while to figure out the basic syntax of this.</description>
		<content:encoded><![CDATA[<p>The current mootools does have a serialize function now. finding tutorials to get this function to return a serialized version of the ID&#8217;s and not a set of numbers 0-(#elements to sort) was a bit difficult though.</p>
<p>in my code I used a table to sort.</p>
<p>var mySort = new Sortables($(&#8217;table&#8217;), {<br />
	onComplete: function() {<br />
		alert(this.serialize(function(el) {<br />
			return el.id;<br />
		}));<br />
	}<br />
});</p>
<p>then after you sort your &#8216;table&#8217; this will return a comma separated string of the id&#8217;s you had in your tr tags of your table.</p>
<p>This is rather basic, but it took me a while to figure out the basic syntax of this.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
