<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Node Manipulation in the DOM</title>
	<atom:link href="http://borkweb.com/story/node-manipulation-in-the-dom/feed" rel="self" type="application/rss+xml" />
	<link>http://borkweb.com/story/node-manipulation-in-the-dom</link>
	<description>Some People Are Squirrel Handed.</description>
	<lastBuildDate>Thu, 12 Jan 2012 15:56:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Roy</title>
		<link>http://borkweb.com/story/node-manipulation-in-the-dom/comment-page-1#comment-42025</link>
		<dc:creator>Roy</dc:creator>
		<pubDate>Thu, 21 May 2009 10:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/node-manipulation-in-the-dom#comment-42025</guid>
		<description>Well this looks very nice post who want to start with DOM. Thank you for nice post. 

events are also bit important while working with DOM. I was working on events and DOM last time and I came to know a very strange thing about events. 

My task : create an input type=&#039;text&#039; element using createElement function and setting an function call on onblur event of this newly created input element.

I created the element but was not able to write a generic script ( cross browser ) to set the onblur event on it.

element.attachEvent(&#039;onblur&#039;,functionName) works in IE but not in mozilla firefox 3.0.10 

there is another function element.addEventListener(&#039;blur&#039;,functionName) this works in mozilla firefox 3.0.10 but not in IE.

I found a crazy solution: I just used both function with browser detection code.
&lt;code&gt;
		if(browser==&quot;Microsoft Internet Explorer&quot;)
		{
		  element.attachEvent(&#039;onblur&#039;,function () {
		  g(element);
		  });
		}
		else
		{
		  element.addEventListener(&#039;blur&#039;,function () {
		  g(element);
		  },false);
		}
&lt;/code&gt;

This works fine , but I want to know that is there any function which works in all browsers?

Thanks you 
Roy  
&lt;a href=&quot;http://royads.blogspot.com&quot; title=&quot;php freelancer mumbai&quot; rel=&quot;nofollow&quot;&gt;Contact me&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Well this looks very nice post who want to start with DOM. Thank you for nice post. </p>
<p>events are also bit important while working with DOM. I was working on events and DOM last time and I came to know a very strange thing about events. </p>
<p>My task : create an input type=&#8217;text&#8217; element using createElement function and setting an function call on onblur event of this newly created input element.</p>
<p>I created the element but was not able to write a generic script ( cross browser ) to set the onblur event on it.</p>
<p>element.attachEvent(&#8216;onblur&#8217;,functionName) works in IE but not in mozilla firefox 3.0.10 </p>
<p>there is another function element.addEventListener(&#8216;blur&#8217;,functionName) this works in mozilla firefox 3.0.10 but not in IE.</p>
<p>I found a crazy solution: I just used both function with browser detection code.<br />
<code><br />
		if(browser=="Microsoft Internet Explorer")<br />
		{<br />
		  element.attachEvent('onblur',function () {<br />
		  g(element);<br />
		  });<br />
		}<br />
		else<br />
		{<br />
		  element.addEventListener('blur',function () {<br />
		  g(element);<br />
		  },false);<br />
		}<br />
</code></p>
<p>This works fine , but I want to know that is there any function which works in all browsers?</p>
<p>Thanks you<br />
Roy<br />
<a href="http://royads.blogspot.com" title="php freelancer mumbai" rel="nofollow">Contact me</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://borkweb.com/story/node-manipulation-in-the-dom/comment-page-1#comment-35621</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 06 Nov 2007 21:16:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/node-manipulation-in-the-dom#comment-35621</guid>
		<description>I found this reference handy when I was trying to look some of these method names up.  Thanks for putting it where google could find it for me. :-)</description>
		<content:encoded><![CDATA[<p>I found this reference handy when I was trying to look some of these method names up.  Thanks for putting it where google could find it for me. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Some Random Dude</title>
		<link>http://borkweb.com/story/node-manipulation-in-the-dom/comment-page-1#comment-13881</link>
		<dc:creator>Some Random Dude</dc:creator>
		<pubDate>Sun, 10 Dec 2006 20:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/node-manipulation-in-the-dom#comment-13881</guid>
		<description>Ben try to avoid negative thoughts and comments, if you apply it to your personal live you will be happier.</description>
		<content:encoded><![CDATA[<p>Ben try to avoid negative thoughts and comments, if you apply it to your personal live you will be happier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Crinion</title>
		<link>http://borkweb.com/story/node-manipulation-in-the-dom/comment-page-1#comment-7091</link>
		<dc:creator>Ben Crinion</dc:creator>
		<pubDate>Fri, 08 Sep 2006 11:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/node-manipulation-in-the-dom#comment-7091</guid>
		<description>Perhaps you could make this site harder to read by making the background colour the same colour as the text.</description>
		<content:encoded><![CDATA[<p>Perhaps you could make this site harder to read by making the background colour the same colour as the text.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BorkWeb &#187; Blog Archive &#187; Ajax; Templating; and the Separation of Layout and Logic</title>
		<link>http://borkweb.com/story/node-manipulation-in-the-dom/comment-page-1#comment-231</link>
		<dc:creator>BorkWeb &#187; Blog Archive &#187; Ajax; Templating; and the Separation of Layout and Logic</dc:creator>
		<pubDate>Fri, 10 Mar 2006 17:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.borkweb.com/story/node-manipulation-in-the-dom#comment-231</guid>
		<description>[...] I have often mentioned my process of expanding my proficiency of Ajax. Through my journey I have made a number of wrong turns and hit my share of stumbling blocks. All of that has been a learning experience and I&#8217;m learning still. I began fiddling with XMLHttpRequest as many do - blissfully ignorant of the many frameworks that exist to make Ajax super easy. My code was bloated with some neat&#8230;&#8217;features&#8217; (pronounced: bugs). [...]</description>
		<content:encoded><![CDATA[<p>[...] I have often mentioned my process of expanding my proficiency of Ajax. Through my journey I have made a number of wrong turns and hit my share of stumbling blocks. All of that has been a learning experience and I&#8217;m learning still. I began fiddling with XMLHttpRequest as many do &#8211; blissfully ignorant of the many frameworks that exist to make Ajax super easy. My code was bloated with some neat&#8230;&#8217;features&#8217; (pronounced: bugs). [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

