<?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: Element.Insert [JavaScript]</title>
	<atom:link href="http://www.dtsn.co.uk/2008/05/01/elementinsert-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dtsn.co.uk/2008/05/01/elementinsert-javascript/</link>
	<description>Daniel Thomas Saxil-Nielsen</description>
	<pubDate>Thu, 28 Aug 2008 10:43:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: kangax</title>
		<link>http://www.dtsn.co.uk/2008/05/01/elementinsert-javascript/#comment-692</link>
		<dc:creator>kangax</dc:creator>
		<pubDate>Sat, 03 May 2008 01:17:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.dtsn.co.uk/?p=191#comment-692</guid>
		<description>You could also write:

var dummy = new Element('div').update('Hello World');
$('hook').insert({ after: dummy });

or even shorter:

$('hook').insert({ after: new Element('div').update('Hello World') })

#insert could also accept object:

$('foo').insert({
  after: '',
  before: '',
  ...
})</description>
		<content:encoded><![CDATA[<p>You could also write:</p>
<p>var dummy = new Element(&#8217;div&#8217;).update(&#8217;Hello World&#8217;);<br />
$(&#8217;hook&#8217;).insert({ after: dummy });</p>
<p>or even shorter:</p>
<p>$(&#8217;hook&#8217;).insert({ after: new Element(&#8217;div&#8217;).update(&#8217;Hello World&#8217;) })</p>
<p>#insert could also accept object:</p>
<p>$(&#8217;foo&#8217;).insert({<br />
  after: &#8221;,<br />
  before: &#8221;,<br />
  &#8230;<br />
})</p>
]]></content:encoded>
	</item>
</channel>
</rss>
