<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://walkthrough.ifupdown.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://walkthrough.ifupdown.com/feed.php">
        <title>The mooWalkthrough</title>
        <description></description>
        <link>http://walkthrough.ifupdown.com/</link>
        <image rdf:resource="http://walkthrough.ifupdown.com/lib/images/favicon.ico" />
       <dc:date>2010-03-14T22:56:05-04:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://walkthrough.ifupdown.com/1.2.x/basic/set-many-methods?rev=1261366320&amp;do=diff"/>
                <rdf:li rdf:resource="http://walkthrough.ifupdown.com/1.2.x/basic/set-style-and-styles?rev=1261287940&amp;do=diff"/>
                <rdf:li rdf:resource="http://walkthrough.ifupdown.com/1.2.x/basic/set-html-and-text?rev=1261287121&amp;do=diff"/>
                <rdf:li rdf:resource="http://walkthrough.ifupdown.com/1.2.x/basic/set-properties-on-element?rev=1261286389&amp;do=diff"/>
                <rdf:li rdf:resource="http://walkthrough.ifupdown.com/1.2.x/basic/dollars?rev=1261285901&amp;do=diff"/>
                <rdf:li rdf:resource="http://walkthrough.ifupdown.com/1.2.x/basic/dollar?rev=1261284964&amp;do=diff"/>
                <rdf:li rdf:resource="http://walkthrough.ifupdown.com/1.2.x/home?rev=1261284932&amp;do=diff"/>
                <rdf:li rdf:resource="http://walkthrough.ifupdown.com/1.2.x/basic/descendant-fetching?rev=1261253407&amp;do=diff"/>
                <rdf:li rdf:resource="http://walkthrough.ifupdown.com/1.2.x/basic/getting-positions-in-dom?rev=1261252623&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://walkthrough.ifupdown.com/lib/images/favicon.ico">
        <title>The mooWalkthrough</title>
        <link>http://walkthrough.ifupdown.com/</link>
        <url>http://walkthrough.ifupdown.com/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://walkthrough.ifupdown.com/1.2.x/basic/set-many-methods?rev=1261366320&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-20T22:32:00-04:00</dc:date>
        <dc:creator>Ryan Rampersad</dc:creator>
        <title>Setting Properties and Styles on Many Elements - added mooshell</title>
        <link>http://walkthrough.ifupdown.com/1.2.x/basic/set-many-methods?rev=1261366320&amp;do=diff</link>
        <description>If you have an array of elements, possibly returned to you by $$, you can set properties and styles on all of them at once.

This is extremely powerful feature of mootools which can save you a lot of time.



// Gets all h3 with important as the a class on it inside of the element of news id.
var importantNews = $$(&quot;#news h3.important&quot;);

importantNew.setProperty(&quot;title&quot;, &quot;Really important news!&quot;);
importantNews.setStyle(&quot;font-size&quot;, &quot;2em&quot;);</description>
    </item>
    <item rdf:about="http://walkthrough.ifupdown.com/1.2.x/basic/set-style-and-styles?rev=1261287940&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-20T00:45:40-04:00</dc:date>
        <dc:creator>Ryan Rampersad</dc:creator>
        <title>Set Style and Styles - added moohsell</title>
        <link>http://walkthrough.ifupdown.com/1.2.x/basic/set-style-and-styles?rev=1261287940&amp;do=diff</link>
        <description>Setting CSS properties with mootools is easy with the two style setting methods that handle any cross-browser inconsistencies that may exist and also facilitate short-hand properties.

Firstly, the .setStyle method can set a CSS property.



$(&quot;myLink&quot;).setStyle(&quot;font-size&quot;, &quot;2em&quot;);

$(&quot;myDiv&quot;).setStyle(&quot;margin&quot;, &quot;1em&quot;);</description>
    </item>
    <item rdf:about="http://walkthrough.ifupdown.com/1.2.x/basic/set-html-and-text?rev=1261287121&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-20T00:32:01-04:00</dc:date>
        <dc:creator>Ryan Rampersad</dc:creator>
        <title>Set HTML and Text - added mooshell example</title>
        <link>http://walkthrough.ifupdown.com/1.2.x/basic/set-html-and-text?rev=1261287121&amp;do=diff</link>
        <description>Functions and methods often need to return feedback to the user in some way; often by new text in a p-tag or similar structure. Mootools offers two methods that assist with those needs.

The .set method will append as many HTML strings as you pass it.</description>
    </item>
    <item rdf:about="http://walkthrough.ifupdown.com/1.2.x/basic/set-properties-on-element?rev=1261286389&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-20T00:19:49-04:00</dc:date>
        <dc:creator>Ryan Rampersad</dc:creator>
        <title>Set Properties on Elements - mooshell example added</title>
        <link>http://walkthrough.ifupdown.com/1.2.x/basic/set-properties-on-element?rev=1261286389&amp;do=diff</link>
        <description>Setting properties of elements is easy in mootools as there are many methods for it. First, there is .setProperty.



 $(&quot;myElement&quot;).setProperty(&quot;title&quot;, &quot;I am your element!&quot;);



Adding a property is usful; you can remove a property in much the same way.</description>
    </item>
    <item rdf:about="http://walkthrough.ifupdown.com/1.2.x/basic/dollars?rev=1261285901&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-20T00:11:41-04:00</dc:date>
        <dc:creator>Ryan Rampersad</dc:creator>
        <title>The $$ Function - added mooshell example</title>
        <link>http://walkthrough.ifupdown.com/1.2.x/basic/dollars?rev=1261285901&amp;do=diff</link>
        <description>The $ function is used to get a single element. The $$ function is used to get many elements based on CSS Selectors (selectors).


 // This will return references as an Array of all p-tags on the page.
  var ps = $$(&quot;p&quot;);

 // This will return all p-tags with the red CSS class on them.
  var redps = $$(&quot;p.red&quot;);

 // This will return all p-tags with the red CSS class on them inside of the news div.
  var newsredps = $$(&quot;#news p.red&quot;);</description>
    </item>
    <item rdf:about="http://walkthrough.ifupdown.com/1.2.x/basic/dollar?rev=1261284964&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-19T23:56:04-04:00</dc:date>
        <dc:creator>Ryan Rampersad</dc:creator>
        <title>The $ Function - slight framechange</title>
        <link>http://walkthrough.ifupdown.com/1.2.x/basic/dollar?rev=1261284964&amp;do=diff</link>
        <description>Use the $ function to get an element from the DOM instead of the clunky document.getElementById method.


 // This is the classical clunky method for getting an element.
  var myElement = document.getElementById(&quot;myElement&quot;);

 // This is the mootools way, the $ (dollar) function to get an element.
  var myBetterElement = $(&quot;myElement&quot;);

 // The references returned by both of these functions are identical. They both will refer to the element given by the ID argument.</description>
    </item>
    <item rdf:about="http://walkthrough.ifupdown.com/1.2.x/home?rev=1261284932&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-19T23:55:32-04:00</dc:date>
        <dc:creator>Ryan Rampersad</dc:creator>
        <title>Mootools 1.2.x - added mooshell note</title>
        <link>http://walkthrough.ifupdown.com/1.2.x/home?rev=1261284932&amp;do=diff</link>
        <description>Welcome to the mooWalkthrough 1.2.x. This walkthrough has been rewritten from the ground-up. It follows a better pattern and goes into more detail that the previous editions. This walkthrough is based on the 1.2.x branch of Mootools, which is currently at 1.2.4 with a bugfix version with a couple of new features. This walkthrough should function regardless of which version of 1.2.x you have.</description>
    </item>
    <item rdf:about="http://walkthrough.ifupdown.com/1.2.x/basic/descendant-fetching?rev=1261253407&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-19T15:10:07-04:00</dc:date>
        <dc:creator>Ryan Rampersad</dc:creator>
        <title>Descendant Fetching - HTML tags were missing. This is going to be so abused.</title>
        <link>http://walkthrough.ifupdown.com/1.2.x/basic/descendant-fetching?rev=1261253407&amp;do=diff</link>
        <description>In addition to DOM walking, mootools also has two other methods for fetching elements in the DOM.

Examples on this page will use the following HTML chunk.



&lt;div id=&quot;container&quot;&gt;
 &lt;h1&gt;Welcome&lt;/h1&gt;
 &lt;p&gt;All of &lt;strong&gt;your&lt;/strong&gt; business needs&lt;/p&gt;
 &lt;p class=&quot;motto&quot;&gt;Livin' it up&lt;/p&gt;
 &lt;ul id=&quot;navbar&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;
&lt;/div&gt;</description>
    </item>
    <item rdf:about="http://walkthrough.ifupdown.com/1.2.x/basic/getting-positions-in-dom?rev=1261252623&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-19T14:57:03-04:00</dc:date>
        <dc:creator>Ryan Rampersad</dc:creator>
        <title>DOM Walking - updated mooshell code again</title>
        <link>http://walkthrough.ifupdown.com/1.2.x/basic/getting-positions-in-dom?rev=1261252623&amp;do=diff</link>
        <description>When you have an element in the DOM, you can use mootools methods to find other elements near by like children and parents.

For the examples that follow, this HTML chunk is used.



  &lt;div id=&quot;container&quot;&gt;
	&lt;div&gt;
		&lt;a id=&quot;l1&quot;&gt;link 1&lt;/a&gt;
		&lt;a id=&quot;l2&quot;&gt;&lt;span&gt;link 2&lt;/span&gt;&lt;/a&gt;
		&lt;a id=&quot;l3&quot;&gt;link 3&lt;/a&gt;
	&lt;/div&gt;
  	&lt;h2 id=&quot;wel&quot;&gt;Welcome&lt;/h2&gt;
	&lt;ul&gt;
		&lt;li&gt;list item 1&lt;/li&gt;
		&lt;li&gt;list item 2&lt;/li&gt;
	&lt;/ul&gt;
	&lt;p&gt;paragraph&lt;/p&gt;
  &lt;/div&gt;</description>
    </item>
</rdf:RDF>
