<?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>DansNetwork.com &#187; html</title>
	<atom:link href="http://dansnetwork.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://dansnetwork.com</link>
	<description>Web Design, Javascript, CSS, and More...</description>
	<lastBuildDate>Wed, 19 May 2010 20:02:07 +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>Appending With AJAX For A Clean Body</title>
		<link>http://dansnetwork.com/2008/01/24/appending-with-ajax-for-a-clean-body/</link>
		<comments>http://dansnetwork.com/2008/01/24/appending-with-ajax-for-a-clean-body/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 02:28:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">http://blog.dansnetwork.com/2008/01/24/appending-with-ajax-for-a-clean-body/</guid>
		<description><![CDATA[It may sound painful, but really, it&#8217;s not.
 So you want to add content to the bottom of your web page without reloading the whole page or DIV that the majority of your content is located in? You could add a separate DIV to the bottom of your page and use the document.getElementByID(&#8216;myDIV&#8217;).innerHTML = xmlHttp [...]]]></description>
			<content:encoded><![CDATA[<p align="left">It may sound painful, but really, it&#8217;s not.</p>
<p align="left"> So you want to add content to the bottom of your web page without reloading the whole page or DIV that the majority of your content is located in? You could add a separate DIV to the bottom of your page and use the <font color="#3366ff">document.getElementByID(&#8216;myDIV&#8217;).innerHTML = <span style="font-style: italic">xmlHttp response</span>;</font> method to append the new content&#8230;</p>
<p><strong> But, what if you want to append multiple times?</strong></p>
<ul>
<li><font color="#008000"> add rows to your favorite database&#8217;s front end</font></li>
<li><font color="#008000"> add stories to the front page, as the user scrolls down, like on DZone&#8217;s home page</font></li>
<li><font color="#008000"> use it on the top end to dynamically stack new content without user intervention</font></li>
</ul>
<h4><u>Why not include new DIV tags within your response code?</u></h4>
<p><span style="font-weight: bold">Existing DIV at the bottom of your page:</span></p>
<blockquote><p> &lt;div id=&#8221;newdiv001&#8243;&gt;</p>
<p>&lt;/div&gt;</p></blockquote>
<p><span style="font-weight: bold">xmlHttp Response from the server:</span></p>
<blockquote><p> latest news flash here&lt;/div&gt;<br />
&lt;div id=&#8221;newdiv002&#8243;&gt;</p></blockquote>
<p><span style="font-weight: bold">After it&#8217;s inserted into your existing DIV, it&#8217;ll look like this:</span></p>
<blockquote><p> &lt;div id=&#8221;newdiv001&#8243;&gt;<br />
latest news flash here&lt;/div&gt;<br />
&lt;div id=&#8221;newdiv002&#8243;&gt;</p>
<p>&lt;/div&gt;</p></blockquote>
<p>&#8230; and now &#8220;newdiv002&#8243; is ready to take the next response.<br />
The important thing to remember here, is to keep track of your DIV ids. By using a number at the end of your id&#8217;s name, you can keep track of it with a simple counter.</p>
]]></content:encoded>
			<wfw:commentRss>http://dansnetwork.com/2008/01/24/appending-with-ajax-for-a-clean-body/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
