<?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: Prototype Element.Insert</title>
	<atom:link href="http://dtsn.co.uk/2008/05/01/elementinsert-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://dtsn.co.uk/2008/05/01/elementinsert-javascript/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 17 Aug 2010 13:30:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: kangax</title>
		<link>http://dtsn.co.uk/2008/05/01/elementinsert-javascript/comment-page-1/#comment-46</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-46</guid>
		<description>You could also write:

var dummy = new Element(&#039;div&#039;).update(&#039;Hello World&#039;);
$(&#039;hook&#039;).insert({ after: dummy });

or even shorter:

$(&#039;hook&#039;).insert({ after: new Element(&#039;div&#039;).update(&#039;Hello World&#039;) })

#insert could also accept object:

$(&#039;foo&#039;).insert({
  after: &#039;&#039;,
  before: &#039;&#039;,
  ...
})</description>
		<content:encoded><![CDATA[<p>You could also write:</p>
<p>var dummy = new Element(&#8216;div&#8217;).update(&#8216;Hello World&#8217;);<br />
$(&#8216;hook&#8217;).insert({ after: dummy });</p>
<p>or even shorter:</p>
<p>$(&#8216;hook&#8217;).insert({ after: new Element(&#8216;div&#8217;).update(&#8216;Hello World&#8217;) })</p>
<p>#insert could also accept object:</p>
<p>$(&#8216;foo&#8217;).insert({<br />
  after: &#8221;,<br />
  before: &#8221;,<br />
  &#8230;<br />
})</p>
]]></content:encoded>
	</item>
</channel>
</rss>
