<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: How to create a new element with YUI</title>
	<atom:link href="http://claytonrabenda.com/uncategorized/how-to-create-a-new-element-with-yui/feed" rel="self" type="application/rss+xml" />
	<link>http://claytonrabenda.com/uncategorized/how-to-create-a-new-element-with-yui</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Fri, 30 Jul 2010 02:10:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: JAY</title>
		<link>http://claytonrabenda.com/uncategorized/how-to-create-a-new-element-with-yui#comment-52547</link>
		<dc:creator>JAY</dc:creator>
		<pubDate>Mon, 05 Jul 2010 14:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://claytonrabenda.com/?p=128#comment-52547</guid>
		<description>&lt;strong&gt;&lt;blockquote&gt;&lt;a href="http://pillspot.org/" rel="nofollow"&gt;PillSpot.org. Canadian Health&#38;Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. Low price pills. Order pills online&lt;/a&gt;...&lt;/strong&gt;

Buy:Viagra Soft Tabs.Viagra.Cialis Super Active+.Viagra Super Force.Levitra.Propecia.Viagra Professional.Zithromax.Cialis Soft Tabs.Maxaman.Soma.Cialis Professional.Cialis.Viagra Super Active+.Tramadol.Super Active ED Pack.VPXL....</description>
		<content:encoded><![CDATA[<p><strong><br />
<blockquote><a href="http://pillspot.org/" rel="nofollow">PillSpot.org. Canadian Health&amp;Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. Low price pills. Order pills online</a>&#8230;</p></blockquote>
<p></strong></p>
<p>Buy:Viagra Soft Tabs.Viagra.Cialis Super Active+.Viagra Super Force.Levitra.Propecia.Viagra Professional.Zithromax.Cialis Soft Tabs.Maxaman.Soma.Cialis Professional.Cialis.Viagra Super Active+.Tramadol.Super Active ED Pack.VPXL&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GLENN</title>
		<link>http://claytonrabenda.com/uncategorized/how-to-create-a-new-element-with-yui#comment-52226</link>
		<dc:creator>GLENN</dc:creator>
		<pubDate>Tue, 29 Jun 2010 17:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://claytonrabenda.com/?p=128#comment-52226</guid>
		<description>&lt;strong&gt;&lt;blockquote&gt;&lt;a href="http://pillspot.org/" rel="nofollow"&gt;PillSpot.org. Canadian Health&#38;Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. No prescription pills. Buy drugs online&lt;/a&gt;...&lt;/strong&gt;

Buy:Retin-A.Arimidex.Actos.Lumigan.Human Growth Hormone.Prednisolone.Accutane.100% Pure Okinawan Coral Calcium.Zyban.Prevacid.Valtrex.Zovirax.Mega Hoodia.Synthroid.Petcam (Metacam) Oral Suspension.Nexium....</description>
		<content:encoded><![CDATA[<p><strong><br />
<blockquote><a href="http://pillspot.org/" rel="nofollow">PillSpot.org. Canadian Health&amp;Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. No prescription pills. Buy drugs online</a>&#8230;</p></blockquote>
<p></strong></p>
<p>Buy:Retin-A.Arimidex.Actos.Lumigan.Human Growth Hormone.Prednisolone.Accutane.100% Pure Okinawan Coral Calcium.Zyban.Prevacid.Valtrex.Zovirax.Mega Hoodia.Synthroid.Petcam (Metacam) Oral Suspension.Nexium&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EDUARDO</title>
		<link>http://claytonrabenda.com/uncategorized/how-to-create-a-new-element-with-yui#comment-52051</link>
		<dc:creator>EDUARDO</dc:creator>
		<pubDate>Sat, 26 Jun 2010 08:15:28 +0000</pubDate>
		<guid isPermaLink="false">http://claytonrabenda.com/?p=128#comment-52051</guid>
		<description>&lt;strong&gt;PillSpot.org. Canadian Health&#38;Care.Special Internet Prices.No prescription online pharmacy.Pillspot.org.&lt;b&gt; &lt;a href="http://pillspot.org/products/vitamins_herbal_supplements/ Herbal-supplements@buy.online" rel="nofollow"&gt;.&lt;/a&gt;...&lt;/strong&gt;

Categories: &lt;b&gt;Skin Care.Antiviral.Antibiotics.Stop SmokingBlood Pressure/Heart.Eye Care.Mental HealthStomach.Weight Loss.Vitamins/Herbal Supplements.Anti-allergic/Asthma.Anxiety/Sleep Aid.Antidiabetic.Womens Health.Antidepressants.Pain Relief.Mens H...</description>
		<content:encoded><![CDATA[<p><strong>PillSpot.org. Canadian Health&amp;Care.Special Internet Prices.No prescription online pharmacy.Pillspot.org.<b> <a href="http://pillspot.org/products/vitamins_herbal_supplements/ <a href="mailto:Herbal-supplements@buy.online">Herbal-supplements@buy.online</a>&#8221; rel=&#8221;nofollow&#8221;>.&#8230;</b></strong></p>
<p>Categories: <b>Skin Care.Antiviral.Antibiotics.Stop SmokingBlood Pressure/Heart.Eye Care.Mental HealthStomach.Weight Loss.Vitamins/Herbal Supplements.Anti-allergic/Asthma.Anxiety/Sleep Aid.Antidiabetic.Womens Health.Antidepressants.Pain Relief.Mens H&#8230;</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey04</title>
		<link>http://claytonrabenda.com/uncategorized/how-to-create-a-new-element-with-yui#comment-3199</link>
		<dc:creator>Jeffrey04</dc:creator>
		<pubDate>Sat, 15 Aug 2009 14:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://claytonrabenda.com/?p=128#comment-3199</guid>
		<description>found this blog via my blog stat XD

basically if document.createElement does it job well enough, I don't see a point why YUI should create a wrapper for the method.

To use YAHOO.util.Element, you are not necessary to pass in an id. If you read the API documentation (which you should as it is far more informative than the tutorial guide), you will find that YAHOO.util.Element not only can receive an id, but also html element as well.

so if you want to create a new element, and use YAHOO.util.Element, then you can pass the element like what @randy posted

var el = new YAHOO.util.Element(document.createElement('div'));

I like YUI2, but since it is one of the first javascript frameworks, so the coding style doesn't look as simple as jquery's code. However, YUI is a good as I learn a lot about javascript through it.

but you probably know about this already since this post is dated january?!</description>
		<content:encoded><![CDATA[<p>found this blog via my blog stat XD</p>
<p>basically if document.createElement does it job well enough, I don&#8217;t see a point why YUI should create a wrapper for the method.</p>
<p>To use YAHOO.util.Element, you are not necessary to pass in an id. If you read the API documentation (which you should as it is far more informative than the tutorial guide), you will find that YAHOO.util.Element not only can receive an id, but also html element as well.</p>
<p>so if you want to create a new element, and use YAHOO.util.Element, then you can pass the element like what @randy posted</p>
<p>var el = new YAHOO.util.Element(document.createElement(&#8217;div&#8217;));</p>
<p>I like YUI2, but since it is one of the first javascript frameworks, so the coding style doesn&#8217;t look as simple as jquery&#8217;s code. However, YUI is a good as I learn a lot about javascript through it.</p>
<p>but you probably know about this already since this post is dated january?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: randy</title>
		<link>http://claytonrabenda.com/uncategorized/how-to-create-a-new-element-with-yui#comment-1722</link>
		<dc:creator>randy</dc:creator>
		<pubDate>Thu, 14 May 2009 05:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://claytonrabenda.com/?p=128#comment-1722</guid>
		<description>It is a bit confusing, even if you do RTM. I couldn't find anything in the examples or API docs for YAHOO.util.Element. But, I did find this link that shows a more simplified way to create an element "in-memory" 

http://cslai.coolsilon.com/2009/01/16/using-yui-for-dom-manipulation/

    var el = new YAHOO.util.Element(document.createElement('div'));
    el.set('id', 'yui-id');
    el.appendTo(document.body);</description>
		<content:encoded><![CDATA[<p>It is a bit confusing, even if you do RTM. I couldn&#8217;t find anything in the examples or API docs for YAHOO.util.Element. But, I did find this link that shows a more simplified way to create an element &#8220;in-memory&#8221; </p>
<p><a href="http://cslai.coolsilon.com/2009/01/16/using-yui-for-dom-manipulation/" rel="nofollow">http://cslai.coolsilon.com/2009/01/16/using-yui-for-dom-manipulation/</a></p>
<p>    var el = new YAHOO.util.Element(document.createElement(&#8217;div&#8217;));<br />
    el.set(&#8217;id&#8217;, &#8216;yui-id&#8217;);<br />
    el.appendTo(document.body);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre Spring</title>
		<link>http://claytonrabenda.com/uncategorized/how-to-create-a-new-element-with-yui#comment-1420</link>
		<dc:creator>Pierre Spring</dc:creator>
		<pubDate>Wed, 29 Apr 2009 14:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://claytonrabenda.com/?p=128#comment-1420</guid>
		<description>hi clay,
i just freaked out about the same problem … it really makes no sense whatsoever to have a new YAHOO.util.Element being a getter …
pierre</description>
		<content:encoded><![CDATA[<p>hi clay,<br />
i just freaked out about the same problem … it really makes no sense whatsoever to have a new YAHOO.util.Element being a getter …<br />
pierre</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunchameleon</title>
		<link>http://claytonrabenda.com/uncategorized/how-to-create-a-new-element-with-yui#comment-1190</link>
		<dc:creator>sunchameleon</dc:creator>
		<pubDate>Tue, 07 Apr 2009 18:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://claytonrabenda.com/?p=128#comment-1190</guid>
		<description>RTM man. You are creating an HTMLElement in memory and then trying to retrieve it from the DOM using YUI. Can't get what is not there. Do this instead:

First:

var $yd = YAHOO.util.Dom;
var $ye = YAHOO.util.Element;

Get an *existing* HTMLElement from the DOM:

var myHtmlElement1 = $yd.get('foo');

Create a HTMLElement in memory:

var myHtmlElement2 = document.createElement('div');

Do something cross-browser using YUI:

$yd.insertAfter(myHtmlElement2, myHtmlElement1);

var myEl = new $ye(myHtmlElement1);
myEl.removeChild(myHtmlElement2);

YAHOO.util.Element makes element handling cross-browser and object-oriented. Now you can create widgets by subclassing from YAHOO.util.Element.</description>
		<content:encoded><![CDATA[<p>RTM man. You are creating an HTMLElement in memory and then trying to retrieve it from the DOM using YUI. Can&#8217;t get what is not there. Do this instead:</p>
<p>First:</p>
<p>var $yd = YAHOO.util.Dom;<br />
var $ye = YAHOO.util.Element;</p>
<p>Get an *existing* HTMLElement from the DOM:</p>
<p>var myHtmlElement1 = $yd.get(&#8217;foo&#8217;);</p>
<p>Create a HTMLElement in memory:</p>
<p>var myHtmlElement2 = document.createElement(&#8217;div&#8217;);</p>
<p>Do something cross-browser using YUI:</p>
<p>$yd.insertAfter(myHtmlElement2, myHtmlElement1);</p>
<p>var myEl = new $ye(myHtmlElement1);<br />
myEl.removeChild(myHtmlElement2);</p>
<p>YAHOO.util.Element makes element handling cross-browser and object-oriented. Now you can create widgets by subclassing from YAHOO.util.Element.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
