<?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: Refreshing DIV content with AJAX</title>
	<atom:link href="http://www.aleixcortadellas.com/main/2009/02/11/232/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aleixcortadellas.com/main/2009/02/11/232/</link>
	<description>A little bit of everything...</description>
	<lastBuildDate>Sat, 13 Feb 2010 06:52:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: loopmob</title>
		<link>http://www.aleixcortadellas.com/main/2009/02/11/232/comment-page-1/#comment-894</link>
		<dc:creator>loopmob</dc:creator>
		<pubDate>Thu, 03 Dec 2009 15:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.aleixcortadellas.com/main/?p=232#comment-894</guid>
		<description>Im searching for sites related to this. Glad I found you. Thanks</description>
		<content:encoded><![CDATA[<p>Im searching for sites related to this. Glad I found you. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aleix</title>
		<link>http://www.aleixcortadellas.com/main/2009/02/11/232/comment-page-1/#comment-803</link>
		<dc:creator>Aleix</dc:creator>
		<pubDate>Mon, 14 Sep 2009 23:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.aleixcortadellas.com/main/?p=232#comment-803</guid>
		<description>Thanks Daria! Glad you find the information here useful! Whenever I learn more AJAX tips and tricks in the future, be sure I&#039;ll share them here :)

Kind regards</description>
		<content:encoded><![CDATA[<p>Thanks Daria! Glad you find the information here useful! Whenever I learn more AJAX tips and tricks in the future, be sure I&#8217;ll share them here <img src='http://www.aleixcortadellas.com/main/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Kind regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daria</title>
		<link>http://www.aleixcortadellas.com/main/2009/02/11/232/comment-page-1/#comment-801</link>
		<dc:creator>Daria</dc:creator>
		<pubDate>Mon, 14 Sep 2009 19:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.aleixcortadellas.com/main/?p=232#comment-801</guid>
		<description>hye aleix,
i love all your ajax tutorials :)
(just giving you huge pat on your back, because im learning a lot from you :))</description>
		<content:encoded><![CDATA[<p>hye aleix,<br />
i love all your ajax tutorials <img src='http://www.aleixcortadellas.com/main/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
(just giving you huge pat on your back, because im learning a lot from you <img src='http://www.aleixcortadellas.com/main/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Bryant</title>
		<link>http://www.aleixcortadellas.com/main/2009/02/11/232/comment-page-1/#comment-325</link>
		<dc:creator>Tony Bryant</dc:creator>
		<pubDate>Thu, 11 Jun 2009 17:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.aleixcortadellas.com/main/?p=232#comment-325</guid>
		<description>Great Code! I have not read all the comments so someone may have stumbled upon this but just in case. You can update multiple divs with this code by making a couple of simple changes.

First remove vars on lines 4 and 5. Then change line 13 to this:

function refreshdiv(divid, url){

Then change lines 51 and 61 to this:

setTimeout(function(){refreshdiv(divid, url)},seconds*1000);

Then when you call the refreshdiv function from your html page, pass the div id and page you wish to load:


  refreshdiv(&#039;timediv&#039;, &#039;boo.php&#039;);


If you have more then one div then just call the function twice replacing the div id and page you wish to call.


  refreshdiv(&#039;timediv&#039;, &#039;boo1.php&#039;);
  refreshdiv(&#039;datediv&#039;, &#039;boo2.php&#039;);


This will make the function generic and universal so that you can call it from a .js file and use it on multiple pages without the need to recreate it for each div.</description>
		<content:encoded><![CDATA[<p>Great Code! I have not read all the comments so someone may have stumbled upon this but just in case. You can update multiple divs with this code by making a couple of simple changes.</p>
<p>First remove vars on lines 4 and 5. Then change line 13 to this:</p>
<p>function refreshdiv(divid, url){</p>
<p>Then change lines 51 and 61 to this:</p>
<p>setTimeout(function(){refreshdiv(divid, url)},seconds*1000);</p>
<p>Then when you call the refreshdiv function from your html page, pass the div id and page you wish to load:</p>
<p>  refreshdiv(&#8217;timediv&#8217;, &#8216;boo.php&#8217;);</p>
<p>If you have more then one div then just call the function twice replacing the div id and page you wish to call.</p>
<p>  refreshdiv(&#8217;timediv&#8217;, &#8216;boo1.php&#8217;);<br />
  refreshdiv(&#8217;datediv&#8217;, &#8216;boo2.php&#8217;);</p>
<p>This will make the function generic and universal so that you can call it from a .js file and use it on multiple pages without the need to recreate it for each div.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aleix</title>
		<link>http://www.aleixcortadellas.com/main/2009/02/11/232/comment-page-1/#comment-295</link>
		<dc:creator>Aleix</dc:creator>
		<pubDate>Sun, 26 Apr 2009 09:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.aleixcortadellas.com/main/?p=232#comment-295</guid>
		<description>Thanks. Not sure what the issue could be, apart that I have the feeling the variable &quot;url&quot; is potentially conflictive. Note that in my script there&#039;s a variable with the same name, which is not local to a specific function but at the same level as in the second script. I would suggest you try again the two scripts together renaming one of the &quot;url&quot; variables to something unique, so that the value of one of them does not override the other.

Regards</description>
		<content:encoded><![CDATA[<p>Thanks. Not sure what the issue could be, apart that I have the feeling the variable &#8220;url&#8221; is potentially conflictive. Note that in my script there&#8217;s a variable with the same name, which is not local to a specific function but at the same level as in the second script. I would suggest you try again the two scripts together renaming one of the &#8220;url&#8221; variables to something unique, so that the value of one of them does not override the other.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: UTAN</title>
		<link>http://www.aleixcortadellas.com/main/2009/02/11/232/comment-page-1/#comment-294</link>
		<dc:creator>UTAN</dc:creator>
		<pubDate>Sun, 26 Apr 2009 06:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.aleixcortadellas.com/main/?p=232#comment-294</guid>
		<description>should show the whole script
&lt;blockquote&gt;
= 4)) {
var url=&quot;http://vcomputadoras.com/chat/katrachada.php&quot;;
var title=&quot;Agrega Katrachada el chat 100% a tus favoritos!&quot;;
document.write(&#039;&lt;A HREF=&quot;javascript:window.ext&#039;);
document.write(&#039;ernal.AddFavorite(url,title);&quot;&gt;Agrega Katrachada el chat 100% a tus favoritos!&lt;/a&gt;&#039;);
}
else {
var msg = &quot;No te olvides de agregar Katrachada a tus favoritos! preciona las techas&quot;;
if(navigator.appName == &quot;Netscape&quot;) msg += &quot;(CTRL-D)&quot;;
document.write(msg);
}
// End --&gt;
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>should show the whole script</p>
<blockquote><p>
= 4)) {<br />
var url=&#8221;http://vcomputadoras.com/chat/katrachada.php&#8221;;<br />
var title=&#8221;Agrega Katrachada el chat 100% a tus favoritos!&#8221;;<br />
document.write(&#8217;<a HREF="javascript:window.ext');<br />
document.write('ernal.AddFavorite(url,title);">Agrega Katrachada el chat 100% a tus favoritos!</a>&#8216;);<br />
}<br />
else {<br />
var msg = &#8220;No te olvides de agregar Katrachada a tus favoritos! preciona las techas&#8221;;<br />
if(navigator.appName == &#8220;Netscape&#8221;) msg += &#8220;(CTRL-D)&#8221;;<br />
document.write(msg);<br />
}<br />
// End &#8211;&gt;
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: UTAN</title>
		<link>http://www.aleixcortadellas.com/main/2009/02/11/232/comment-page-1/#comment-293</link>
		<dc:creator>UTAN</dc:creator>
		<pubDate>Sun, 26 Apr 2009 06:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aleixcortadellas.com/main/?p=232#comment-293</guid>
		<description>This is the sript that was conflicting with your code, as i stated before i just took it out of the html and you code worked fine, no issues at all..

&lt;code&gt;

= 4)) {
var url=&quot;http://vcomputadoras.com/chat/katrachada.php&quot;;
var title=&quot;Agrega Katrachada el chat 100% a tus favoritos!&quot;;
document.write(&#039;&lt;A HREF=&quot;javascript:window.ext&#039;);
document.write(&#039;ernal.AddFavorite(url,title);&quot;&gt;Agrega Katrachada el chat 100% a tus favoritos!&lt;/a&gt;&#039;);
}
else {
var msg = &quot;No te olvides de agregar Katrachada a tus favoritos! preciona las techas&quot;;
if(navigator.appName == &quot;Netscape&quot;) msg += &quot;(CTRL-D)&quot;;
document.write(msg);
}
// End --&gt;

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>This is the sript that was conflicting with your code, as i stated before i just took it out of the html and you code worked fine, no issues at all..</p>
<p><code></p>
<p>= 4)) {<br />
var url="http://vcomputadoras.com/chat/katrachada.php";<br />
var title="Agrega Katrachada el chat 100% a tus favoritos!";<br />
document.write('<a HREF="javascript:window.ext');<br />
document.write('ernal.AddFavorite(url,title);">Agrega Katrachada el chat 100% a tus favoritos!</a>');<br />
}<br />
else {<br />
var msg = "No te olvides de agregar Katrachada a tus favoritos! preciona las techas";<br />
if(navigator.appName == "Netscape") msg += "(CTRL-D)";<br />
document.write(msg);<br />
}<br />
// End --&gt;</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aleix</title>
		<link>http://www.aleixcortadellas.com/main/2009/02/11/232/comment-page-1/#comment-292</link>
		<dc:creator>Aleix</dc:creator>
		<pubDate>Sat, 25 Apr 2009 16:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.aleixcortadellas.com/main/?p=232#comment-292</guid>
		<description>So the script here is conflicting with the favorites script? I wonder what the exact issue is, just curiosity...

Glad anyway you found a quick fix.</description>
		<content:encoded><![CDATA[<p>So the script here is conflicting with the favorites script? I wonder what the exact issue is, just curiosity&#8230;</p>
<p>Glad anyway you found a quick fix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: UTAN</title>
		<link>http://www.aleixcortadellas.com/main/2009/02/11/232/comment-page-1/#comment-289</link>
		<dc:creator>UTAN</dc:creator>
		<pubDate>Fri, 24 Apr 2009 22:58:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.aleixcortadellas.com/main/?p=232#comment-289</guid>
		<description>Hello,

I have found the issue, it wasnt any css related stuff, it was in fact a script i was using to have people to put the website in their favorites, once i took it out your script worked like champ in IE7....thank you.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I have found the issue, it wasnt any css related stuff, it was in fact a script i was using to have people to put the website in their favorites, once i took it out your script worked like champ in IE7&#8230;.thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: UTAN</title>
		<link>http://www.aleixcortadellas.com/main/2009/02/11/232/comment-page-1/#comment-287</link>
		<dc:creator>UTAN</dc:creator>
		<pubDate>Fri, 24 Apr 2009 19:52:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.aleixcortadellas.com/main/?p=232#comment-287</guid>
		<description>well the doc type i am using 


CSS validator validate fine my chat page as css level 2.1, you can check my page to check of what i am talking about, try ie 7 and firefox and ill see that firefox works great...
http://vcomputadoras.com/chat/katrachada2.php

i will really appreciate if you help me out..</description>
		<content:encoded><![CDATA[<p>well the doc type i am using </p>
<p>CSS validator validate fine my chat page as css level 2.1, you can check my page to check of what i am talking about, try ie 7 and firefox and ill see that firefox works great&#8230;<br />
<a href="http://vcomputadoras.com/chat/katrachada2.php" rel="nofollow">http://vcomputadoras.com/chat/katrachada2.php</a></p>
<p>i will really appreciate if you help me out..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.225 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-01-18 12:42:18 -->

