<?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>Rony&#039;s &#187; Selection</title>
	<atom:link href="http://rony.creash.com.bd/tag/selection/feed/" rel="self" type="application/rss+xml" />
	<link>http://rony.creash.com.bd</link>
	<description>Blogor Blogor</description>
	<lastBuildDate>Fri, 26 Mar 2010 21:34:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Advanced object selection using Mootools</title>
		<link>http://rony.creash.com.bd/advanced-object-selection-using-mootools/</link>
		<comments>http://rony.creash.com.bd/advanced-object-selection-using-mootools/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 19:30:25 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[Selection]]></category>

		<guid isPermaLink="false">http://rony.creash.com.bd/?p=142</guid>
		<description><![CDATA[Mootools&#8217; &#8220;Selectors&#8221; utility has some really strong feature. It really saves a lot of time and sweat. Using this property, one can select a tag (any one can!), tag with specific name, id or any other attribute (huh!) and most amazingly part of a property value matching to some string&#8230;
Say you want to select all [...]]]></description>
			<content:encoded><![CDATA[<p>Mootools&#8217; &#8220;Selectors&#8221; utility has some really strong feature. It really saves a lot of time and sweat. Using this property, one can select a tag (any one can!), tag with specific name, id or any other attribute (huh!) and most amazingly part of a property value matching to some string&#8230;</p>
<p>Say you want to select all the div tags which has ID starting with &#8216;my&#8217;. How can you do that? <span id="more-142"></span>Select all the div in the document, parse everyone&#8217;s id? Well, here this is a one line code in Mootools using the <em>getElements</em> function. It actually uses the general RegEx symbols to match property values.</p>
<p>To select the div with id starting with &#8216;my&#8217; it would use <em>getElements(&#8216;div[id^=my]&#8216;)</em>;</p>
<p>Some other examples from Mootools documentation:</p>
<p><code>//Returns all anchors within myElement.<br />
$('myElement').getElements('a');</code></p>
<p><code>//Returns all input tags with name "dialog".<br />
$('myElement').getElements('input[name=dialog]');</code></p>
<p><code>//Returns all input tags with names ending with 'log'.<br />
$('myElement').getElements('input[name$=log]');<br />
</code><br />
<code>//Returns all email links (starting with "mailto:").<br />
$('myElement').getElements('a[href^=mailto:]');</code></p>
<p><code>//Adds events to all Elements with the class name 'email'.<br />
$(document.body).getElements('a.email').addEvents({<br />
'mouseenter': function(){<br />
this.href = 'real@email.com';<br />
},<br />
'mouseleave': function(){<br />
this.href = '#';<br />
}<br />
});</code></p>
<p>Mootools documentation on Selectors utility is here: <a href="http://mootools.net/docs/core/Utilities/Selectors" target="_blank" onclick="pageTracker._trackPageview('/outgoing/mootools.net/docs/core/Utilities/Selectors?referer=');">http://mootools.net/docs/core/Utilities/Selectors</a></p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>Bookmark:</em><br /><a class="social_img" onclick="pageTracker._trackPageview('/outgoing/del.icio.us/post?url=http_//rony.creash.com.bd/advanced-object-selection-using-mootools/_amp_title=Advanced+object+selection+using+Mootools&amp;referer=');window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://rony.creash.com.bd/advanced-object-selection-using-mootools/&amp;title=Advanced+object+selection+using+Mootools" title="Add 'Advanced object selection using Mootools' to Del.icio.us"><img src="http://rony.creash.com.bd/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Advanced object selection using Mootools' to Del.icio.us" alt="Add 'Advanced object selection using Mootools' to Del.icio.us" /></a><a class="social_img" onclick="pageTracker._trackPageview('/outgoing/digg.com/submit?phase=2_amp_url=http_//rony.creash.com.bd/advanced-object-selection-using-mootools/_amp_title=Advanced+object+selection+using+Mootools&amp;referer=');window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://rony.creash.com.bd/advanced-object-selection-using-mootools/&amp;title=Advanced+object+selection+using+Mootools" title="Add 'Advanced object selection using Mootools' to digg"><img src="http://rony.creash.com.bd/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Advanced object selection using Mootools' to digg" alt="Add 'Advanced object selection using Mootools' to digg" /></a><a class="social_img" onclick="pageTracker._trackPageview('/outgoing/www.technorati.com/faves?add=http_//rony.creash.com.bd/advanced-object-selection-using-mootools/&amp;referer=');window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://rony.creash.com.bd/advanced-object-selection-using-mootools/" title="Add 'Advanced object selection using Mootools' to Technorati"><img src="http://rony.creash.com.bd/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Advanced object selection using Mootools' to Technorati" alt="Add 'Advanced object selection using Mootools' to Technorati" /></a><a class="social_img" onclick="pageTracker._trackPageview('/outgoing/www.stumbleupon.com/submit?url=http_//rony.creash.com.bd/advanced-object-selection-using-mootools/_amp_title=Advanced+object+selection+using+Mootools&amp;referer=');window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://rony.creash.com.bd/advanced-object-selection-using-mootools/&amp;title=Advanced+object+selection+using+Mootools" title="Add 'Advanced object selection using Mootools' to Stumble Upon"><img src="http://rony.creash.com.bd/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Advanced object selection using Mootools' to Stumble Upon" alt="Add 'Advanced object selection using Mootools' to Stumble Upon" /></a><a class="social_img" onclick="pageTracker._trackPageview('/outgoing/www.google.com/bookmarks/mark?op=edit_amp_output=popup_amp_bkmk=http_//rony.creash.com.bd/advanced-object-selection-using-mootools/_amp_title=Advanced+object+selection+using+Mootools&amp;referer=');window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://rony.creash.com.bd/advanced-object-selection-using-mootools/&amp;title=Advanced+object+selection+using+Mootools" title="Add 'Advanced object selection using Mootools' to Google Bookmarks"><img src="http://rony.creash.com.bd/wp-content/plugins/social-bookmarking-reloaded/google.png" title="Add 'Advanced object selection using Mootools' to Google Bookmarks" alt="Add 'Advanced object selection using Mootools' to Google Bookmarks" /></a><a class="social_img" onclick="pageTracker._trackPageview('/outgoing/slashdot.org/bookmark.pl?title=Advanced+object+selection+using+Mootools_amp_url=http_//rony.creash.com.bd/advanced-object-selection-using-mootools/&amp;referer=');window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?title=Advanced+object+selection+using+Mootools&amp;url=http://rony.creash.com.bd/advanced-object-selection-using-mootools/" title="Add 'Advanced object selection using Mootools' to SlashDot"><img src="http://rony.creash.com.bd/wp-content/plugins/social-bookmarking-reloaded/slashdot.png" title="Add 'Advanced object selection using Mootools' to SlashDot" alt="Add 'Advanced object selection using Mootools' to SlashDot" /></a><a class="social_img" onclick="pageTracker._trackPageview('/outgoing/www.facebook.com/share.php?u=http_//rony.creash.com.bd/advanced-object-selection-using-mootools/_amp_t=Advanced+object+selection+using+Mootools&amp;referer=');window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/share.php?u=http://rony.creash.com.bd/advanced-object-selection-using-mootools/&amp;t=Advanced+object+selection+using+Mootools" title="Add 'Advanced object selection using Mootools' to FaceBook"><img src="http://rony.creash.com.bd/wp-content/plugins/social-bookmarking-reloaded/facebook.png" title="Add 'Advanced object selection using Mootools' to FaceBook" alt="Add 'Advanced object selection using Mootools' to FaceBook" /></a><a class="social_img" onclick="pageTracker._trackPageview('/outgoing/www.myspace.com/Modules/PostTo/Pages/?t=Advanced+object+selection+using+Mootools_amp_c=http_//rony.creash.com.bd/advanced-object-selection-using-mootools/&amp;referer=');window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.myspace.com/Modules/PostTo/Pages/?t=Advanced+object+selection+using+Mootools&amp;c=http://rony.creash.com.bd/advanced-object-selection-using-mootools/" title="Add 'Advanced object selection using Mootools' to MySpace"><img src="http://rony.creash.com.bd/wp-content/plugins/social-bookmarking-reloaded/myspace.png" title="Add 'Advanced object selection using Mootools' to MySpace" alt="Add 'Advanced object selection using Mootools' to MySpace" /></a><a class="social_img" onclick="pageTracker._trackPageview('/outgoing/twitter.com/home?status=http_//rony.creash.com.bd/advanced-object-selection-using-mootools/&amp;referer=');window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home?status=http://rony.creash.com.bd/advanced-object-selection-using-mootools/" title="Add 'Advanced object selection using Mootools' to Twitter"><img src="http://rony.creash.com.bd/wp-content/plugins/social-bookmarking-reloaded/twitter.png" title="Add 'Advanced object selection using Mootools' to Twitter" alt="Add 'Advanced object selection using Mootools' to Twitter" /></a><a class="social_img" onclick="pageTracker._trackPageview('/outgoing/www.google.com/reader/link?url=http_//rony.creash.com.bd/advanced-object-selection-using-mootools/_amp_title=Advanced+object+selection+using+Mootools_amp_srcURL=http_//rony.creash.com.bd/advanced-object-selection-using-mootools/&amp;referer=');window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/reader/link?url=http://rony.creash.com.bd/advanced-object-selection-using-mootools/&amp;title=Advanced+object+selection+using+Mootools&amp;srcURL=http://rony.creash.com.bd/advanced-object-selection-using-mootools/" title="Add 'Advanced object selection using Mootools' to Google Buzz"><img src="http://rony.creash.com.bd/wp-content/plugins/social-bookmarking-reloaded/googlebuzz.png" title="Add 'Advanced object selection using Mootools' to Google Buzz" alt="Add 'Advanced object selection using Mootools' to Google Buzz" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://rony.creash.com.bd/advanced-object-selection-using-mootools/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
