<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Periodical AJAX Requests Using MooTools&#160;1.2</title> <atom:link href="http://davidwalsh.name/periodical-ajax-requests-mootools-12/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/periodical-ajax-requests-mootools-12</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Wed, 23 May 2012 19:56:08 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: LinKuFF</title><link>http://davidwalsh.name/periodical-ajax-requests-mootools-12#comment-28741</link> <dc:creator>LinKuFF</dc:creator> <pubDate>Mon, 30 Jan 2012 19:52:08 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=354#comment-28741</guid> <description>What is the best between periodical() or startTimer() ( http://www.mootools.net/docs/more/Request/Request.Periodical ) ?</description> <content:encoded><![CDATA[<p>What is the best between periodical() or startTimer() ( <a
href="http://www.mootools.net/docs/more/Request/Request.Periodical" rel="nofollow">http://www.mootools.net/docs/more/Request/Request.Periodical</a> ) ?</p> ]]></content:encoded> </item> <item><title>By: dbaind</title><link>http://davidwalsh.name/periodical-ajax-requests-mootools-12#comment-18623</link> <dc:creator>dbaind</dc:creator> <pubDate>Wed, 07 Jul 2010 17:58:29 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=354#comment-18623</guid> <description>@mike: Fx.Style was replaced by Fx.Tween in Mootools 1.2 ( see http://mootools.net/blog/2007/11/14/mootools-12-beta-1/ ). The syntax is not exactly the same for this new method. If, like me, you have a large site to mantain, then probably editting each Fx.Style call is not an option. I solved my problem with the following function, that I inserted in mootools library after its end:// Fix for Fx.Style constructor (transition from mootools 1.1 to mootools 1.2)
Fx.Style = function(x,y,z){
var T = new Fx.Tween( x, y );
for( var x in T ) this[x] = T[x];
this.start = function(v,w){ T.start( y, v, w ); };
};It&#039;s worked ok for me so far, but do let me know if it doesn&#039;t work for you as expected.</description> <content:encoded><![CDATA[<p>@mike: Fx.Style was replaced by Fx.Tween in Mootools 1.2 ( see <a
href="http://mootools.net/blog/2007/11/14/mootools-12-beta-1/" rel="nofollow">http://mootools.net/blog/2007/11/14/mootools-12-beta-1/</a> ). The syntax is not exactly the same for this new method. If, like me, you have a large site to mantain, then probably editting each Fx.Style call is not an option. I solved my problem with the following function, that I inserted in mootools library after its end:</p><p>// Fix for Fx.Style constructor (transition from mootools 1.1 to mootools 1.2)<br
/> Fx.Style = function(x,y,z){<br
/> var T = new Fx.Tween( x, y );<br
/> for( var x in T ) this[x] = T[x];<br
/> this.start = function(v,w){ T.start( y, v, w ); };<br
/> };</p><p>It&#8217;s worked ok for me so far, but do let me know if it doesn&#8217;t work for you as expected.</p> ]]></content:encoded> </item> <item><title>By: Chris</title><link>http://davidwalsh.name/periodical-ajax-requests-mootools-12#comment-18607</link> <dc:creator>Chris</dc:creator> <pubDate>Tue, 06 Jul 2010 17:35:14 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=354#comment-18607</guid> <description>Not sure why, but this does not work with IE...any thoughts?function update(cn)
{
var request = new Request({
url: &#039;status.php?cn=&#039;+cn,
method: &#039;get&#039;,
update: &#039;refresh-me&#039;,
onComplete: function(response) {
$(cn).set(&#039;html&#039;,response);
}
})var doMany = function() {
request.send();
};doMany.periodical(500);}</description> <content:encoded><![CDATA[<p>Not sure why, but this does not work with IE&#8230;any thoughts?</p><p>function update(cn)<br
/> {<br
/> var request = new Request({<br
/> url: &#8216;status.php?cn=&#8217;+cn,<br
/> method: &#8216;get&#8217;,<br
/> update: &#8216;refresh-me&#8217;,<br
/> onComplete: function(response) {<br
/> $(cn).set(&#8216;html&#8217;,response);<br
/> }<br
/> })</p><p>var doMany = function() {<br
/> request.send();<br
/> };</p><p>doMany.periodical(500);</p><p>}</p> ]]></content:encoded> </item> <item><title>By: Mohammad</title><link>http://davidwalsh.name/periodical-ajax-requests-mootools-12#comment-16913</link> <dc:creator>Mohammad</dc:creator> <pubDate>Sat, 10 Apr 2010 09:01:44 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=354#comment-16913</guid> <description>@Ingalb:I have the Same Problem. Also I have This Issue With &quot;Google Style Element Fading Using Mootools&quot;Please help us.Thanks For The Tips.</description> <content:encoded><![CDATA[<p>@Ingalb:</p><p>I have the Same Problem. Also I have This Issue With &#8220;Google Style Element Fading Using Mootools&#8221;</p><p>Please help us.</p><p>Thanks For The Tips.</p> ]]></content:encoded> </item> <item><title>By: Ingalb</title><link>http://davidwalsh.name/periodical-ajax-requests-mootools-12#comment-15981</link> <dc:creator>Ingalb</dc:creator> <pubDate>Mon, 08 Feb 2010 01:38:13 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=354#comment-15981</guid> <description>Hi David,Thanks for this tip.is possible to have this script compatible for Mootools 1.12 ??Thanks</description> <content:encoded><![CDATA[<p>Hi David,</p><p>Thanks for this tip.</p><p>is possible to have this script compatible for Mootools 1.12 ??</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: Davor</title><link>http://davidwalsh.name/periodical-ajax-requests-mootools-12#comment-15698</link> <dc:creator>Davor</dc:creator> <pubDate>Thu, 28 Jan 2010 16:23:35 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=354#comment-15698</guid> <description>Hi David,very good stuff. Do i can use this for a chat, because when i do a delay of 0.5 sec to get the new request, is that good? could i use for chat an other way or is this the only way  to get requests in realtime?</description> <content:encoded><![CDATA[<p>Hi David,</p><p>very good stuff. Do i can use this for a chat, because when i do a delay of 0.5 sec to get the new request, is that good? could i use for chat an other way or is this the only way  to get requests in realtime?</p> ]]></content:encoded> </item> <item><title>By: Tommix</title><link>http://davidwalsh.name/periodical-ajax-requests-mootools-12#comment-12979</link> <dc:creator>Tommix</dc:creator> <pubDate>Tue, 27 Oct 2009 15:13:51 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=354#comment-12979</guid> <description>Rich - thank you very much for fix :)</description> <content:encoded><![CDATA[<p>Rich &#8211; thank you very much for fix :)</p> ]]></content:encoded> </item> <item><title>By: kodegeek</title><link>http://davidwalsh.name/periodical-ajax-requests-mootools-12#comment-10807</link> <dc:creator>kodegeek</dc:creator> <pubDate>Wed, 29 Jul 2009 04:38:33 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=354#comment-10807</guid> <description>Wao, nice stuff!
I&#039;m facing a problem, let i have to send 1000 ajax requests. if i place the Ajax request inside a loop, my browser got stuck :(
How can i make it in a way that, another request will make if one response returns?
Thanks</description> <content:encoded><![CDATA[<p>Wao, nice stuff!<br
/> I&#8217;m facing a problem, let i have to send 1000 ajax requests. if i place the Ajax request inside a loop, my browser got stuck :(<br
/> How can i make it in a way that, another request will make if one response returns?<br
/> Thanks</p> ]]></content:encoded> </item> <item><title>By: Leo</title><link>http://davidwalsh.name/periodical-ajax-requests-mootools-12#comment-10075</link> <dc:creator>Leo</dc:creator> <pubDate>Tue, 30 Jun 2009 02:11:49 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=354#comment-10075</guid> <description>it seems doesn&#039;t work in IE</description> <content:encoded><![CDATA[<p>it seems doesn&#8217;t work in IE</p> ]]></content:encoded> </item> <item><title>By: Rich</title><link>http://davidwalsh.name/periodical-ajax-requests-mootools-12#comment-9066</link> <dc:creator>Rich</dc:creator> <pubDate>Sun, 03 May 2009 16:22:16 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=354#comment-9066</guid> <description>Hi, this worked good but I had some caching issues with IE, the cache bug fix where you append a time string to the URL was appending the same value as the event parameters were already prepared so instead I just changed the line:request.send();To:request.send(&#039;r=&#039; + $time() + $random(0, 100));This will generate a new unique timestring each time before its sent out. It seems to have cured my IE problems.May be helpful for someone else who was looking for a solution.Thanks for the help David on Periodical, it was very helpful.Cheers.</description> <content:encoded><![CDATA[<p>Hi, this worked good but I had some caching issues with IE, the cache bug fix where you append a time string to the URL was appending the same value as the event parameters were already prepared so instead I just changed the line:</p><p>request.send();</p><p>To:</p><p>request.send(&#8216;r=&#8217; + $time() + $random(0, 100));</p><p>This will generate a new unique timestring each time before its sent out. It seems to have cured my IE problems.</p><p>May be helpful for someone else who was looking for a solution.</p><p>Thanks for the help David on Periodical, it was very helpful.</p><p>Cheers.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/7 queries in 0.004 seconds using disk: basic
Object Caching 804/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-23 15:59:07 -->
