<?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: Basic AJAX Requests Using MooTools&#160;1.2</title> <atom:link href="http://davidwalsh.name/basic-ajax-requests-mootools/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/basic-ajax-requests-mootools</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 02 Sep 2010 19:57:16 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>By: Pdf SE</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-19309</link> <dc:creator>Pdf SE</dc:creator> <pubDate>Wed, 11 Aug 2010 12:05:23 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-19309</guid> <description>Pretty cool code. Thank you! I can’t wait to try this out and start playing around with v1.2 of Mootools. I am stuck with 1.11 for now until Joomla ships out an update with the new version of Mootools.</description> <content:encoded><![CDATA[<p>Pretty cool code. Thank you! I can’t wait to try this out and start playing around with v1.2 of Mootools. I am stuck with 1.11 for now until Joomla ships out an update with the new version of Mootools.</p> ]]></content:encoded> </item> <item><title>By: Marien</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-18615</link> <dc:creator>Marien</dc:creator> <pubDate>Wed, 07 Jul 2010 10:36:40 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-18615</guid> <description>Hi all,Superb script.
The only thing I&#039;m struggling with, is that the script allows for merely 1 link.
I&#039;d like to be able to accomodate an infinite amount of links with this great AJAX-script.What I mean; the concent which is loaded depends on which link a person clicked :).thnx in advance!!</description> <content:encoded><![CDATA[<p>Hi all,</p><p>Superb script.<br
/> The only thing I&#8217;m struggling with, is that the script allows for merely 1 link.<br
/> I&#8217;d like to be able to accomodate an infinite amount of links with this great AJAX-script.</p><p>What I mean; the concent which is loaded depends on which link a person clicked :).</p><p>thnx in advance!!</p> ]]></content:encoded> </item> <item><title>By: Morten Slott Hansen</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-18325</link> <dc:creator>Morten Slott Hansen</dc:creator> <pubDate>Mon, 21 Jun 2010 09:29:18 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-18325</guid> <description>@Morten Slott Hansen:auch - my reply got transformed...The line ajax content here… should look like this:&lt;div class=&quot;ajax&quot; title=&quot;http://mydomain.com/ajax/page1.html&quot;&gt;ajax content here...&lt;/div&gt;</description> <content:encoded><![CDATA[<p>@Morten Slott Hansen:</p><p>auch &#8211; my reply got transformed&#8230;</p><p>The line ajax content here… should look like this:</p><p>&lt;div class=&#8221;ajax&#8221; title=&#8221;http://mydomain.com/ajax/page1.html&#8221;&gt;ajax content here&#8230;&lt;/div&gt;</p> ]]></content:encoded> </item> <item><title>By: Morten Slott Hansen</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-18324</link> <dc:creator>Morten Slott Hansen</dc:creator> <pubDate>Mon, 21 Jun 2010 09:26:45 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-18324</guid> <description>@Stephen Moore:
Ah yes - I think I know what you are getting at :)The function &quot;updateContent&quot; takes two arguments. The first is the div id ie. ajax placeholder and the second is the url where the data is loaded from. Do to the nature of my setup I just specify the last part of the url - so what you could do here is to change the code to take a full url.
So look at the method updateContent and change it to something like:function updateContent(placeholder, page) {
var req = new Request.HTML({
method: ‘post’,
async: true,
url:page,
// Show ajax loder gif prior to request
...Ie. just pass the page parameter as the ajax url.But if you want to make things really sweet just have a definition likeajax content here...and then loop over all elements with class=&quot;ajax&quot; and grap the title (which is a url) and load that into the div. This is sweet and makes things so much easier.</description> <content:encoded><![CDATA[<p>@Stephen Moore:<br
/> Ah yes &#8211; I think I know what you are getting at :)</p><p>The function &#8220;updateContent&#8221; takes two arguments. The first is the div id ie. ajax placeholder and the second is the url where the data is loaded from. Do to the nature of my setup I just specify the last part of the url &#8211; so what you could do here is to change the code to take a full url.<br
/> So look at the method updateContent and change it to something like:</p><p>function updateContent(placeholder, page) {<br
/> var req = new Request.HTML({<br
/> method: ‘post’,<br
/> async: true,<br
/> url:page,<br
/> // Show ajax loder gif prior to request<br
/> &#8230;</p><p>Ie. just pass the page parameter as the ajax url.</p><p>But if you want to make things really sweet just have a definition like</p><p>ajax content here&#8230;</p><p>and then loop over all elements with class=&#8221;ajax&#8221; and grap the title (which is a url) and load that into the div. This is sweet and makes things so much easier.</p> ]]></content:encoded> </item> <item><title>By: Stephen Moore</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-18309</link> <dc:creator>Stephen Moore</dc:creator> <pubDate>Sun, 20 Jun 2010 13:30:48 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-18309</guid> <description>@Morten Slott Hansen:  Thanks for your Response!
I am trying to use the MooTools Request Feature to update several individual divs on the page by having a function that I can submit to, which div element is to be updated and with what page.I see you have something like this in your earlier comment to this post but I cannot quite sort the bits you provided. Could you tell me what I have to change in the mootools code, which is the JS defining the function, and what the function looks like?Thanks a lot, I am trying my best but I am not too good at JS yet. Hence the working with the framework.Stephen@Morten Slott Hansen:</description> <content:encoded><![CDATA[<p>@Morten Slott Hansen:  Thanks for your Response!<br
/> I am trying to use the MooTools Request Feature to update several individual divs on the page by having a function that I can submit to, which div element is to be updated and with what page.</p><p>I see you have something like this in your earlier comment to this post but I cannot quite sort the bits you provided. Could you tell me what I have to change in the mootools code, which is the JS defining the function, and what the function looks like?</p><p>Thanks a lot, I am trying my best but I am not too good at JS yet. Hence the working with the framework.</p><p>Stephen</p><p>@Morten Slott Hansen:</p> ]]></content:encoded> </item> <item><title>By: Morten Slott Hansen</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-18230</link> <dc:creator>Morten Slott Hansen</dc:creator> <pubDate>Tue, 15 Jun 2010 06:31:29 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-18230</guid> <description>@Stephen Moore:  Please be more specific - it has been a while since my last posting and I am not really sure what it is that you need - sorry.I&#039;m currently moving towards jquery as it seems that mootools is going nowhere these days...</description> <content:encoded><![CDATA[<p>@Stephen Moore:  Please be more specific &#8211; it has been a while since my last posting and I am not really sure what it is that you need &#8211; sorry.</p><p>I&#8217;m currently moving towards jquery as it seems that mootools is going nowhere these days&#8230;</p> ]]></content:encoded> </item> <item><title>By: Stephen Moore</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-18222</link> <dc:creator>Stephen Moore</dc:creator> <pubDate>Mon, 14 Jun 2010 21:05:13 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-18222</guid> <description>@Morten Slott Hansen:  Hey! Could you specify further what the function needs to look like when called? I am trying to set this up and it won&#039;t work :(I would appreciate the help a lot!Thanks, Stephen</description> <content:encoded><![CDATA[<p>@Morten Slott Hansen:  Hey! Could you specify further what the function needs to look like when called? I am trying to set this up and it won&#8217;t work :(</p><p>I would appreciate the help a lot!</p><p>Thanks, Stephen</p> ]]></content:encoded> </item> <item><title>By: Jorge Castro</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-16759</link> <dc:creator>Jorge Castro</dc:creator> <pubDate>Sun, 04 Apr 2010 00:18:26 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-16759</guid> <description>Hello, first congratulations for your website is very helpful.I&#039;m working with Request.HTML , but there is a problem in ie7 when content is loaded asynchronously click events dblclick, etc. does not work.I searched the web but not found a solution, here I leave a link to work correctly with ie8, firefox but not ie7.
http://n2.nabble.com/AJAX-problem-in-IE-with-onclick-event-td725779.html (description)
http://www.flitsit.nl/mootools-ajax/ (problem)In advance thank you very much.</description> <content:encoded><![CDATA[<p>Hello, first congratulations for your website is very helpful.</p><p>I&#8217;m working with Request.HTML , but there is a problem in ie7 when content is loaded asynchronously click events dblclick, etc. does not work.</p><p>I searched the web but not found a solution, here I leave a link to work correctly with ie8, firefox but not ie7.<br
/> <a
href="http://n2.nabble.com/AJAX-problem-in-IE-with-onclick-event-td725779.html" rel="nofollow">http://n2.nabble.com/AJAX-problem-in-IE-with-onclick-event-td725779.html</a> (description)<br
/> <a
href="http://www.flitsit.nl/mootools-ajax/" rel="nofollow">http://www.flitsit.nl/mootools-ajax/</a> (problem)</p><p>In advance thank you very much.</p> ]]></content:encoded> </item> <item><title>By: loop</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-16279</link> <dc:creator>loop</dc:creator> <pubDate>Sun, 28 Feb 2010 01:01:24 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-16279</guid> <description>Hi again,
sorry for previous post I didn&#039;t know that will be formated on that way :(Anyway I found where is problem. If you use your code and have only one of thid two ids but don&#039;t have one of them javascript will not work.In my case I have js file with 4 different id, but if on page don&#039;t have one of them, nothing work.Is possible to add some code to javascript work even if don&#039;t found one of id ?Thanks</description> <content:encoded><![CDATA[<p>Hi again,<br
/> sorry for previous post I didn&#8217;t know that will be formated on that way :(</p><p>Anyway I found where is problem. If you use your code and have only one of thid two ids but don&#8217;t have one of them javascript will not work.</p><p>In my case I have js file with 4 different id, but if on page don&#8217;t have one of them, nothing work.</p><p>Is possible to add some code to javascript work even if don&#8217;t found one of id ?</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: loop</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-16270</link> <dc:creator>loop</dc:creator> <pubDate>Fri, 26 Feb 2010 19:13:12 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-16270</guid> <description>Hi, I have very strange problem,when trying to make page navigation with this code.On first click everything for great:&lt;a href rel=&quot;nofollow&quot;&gt;pager.php?start=10 id-&gt;clicker &gt;Now in pager.php it again generate this link&lt;a href rel=&quot;nofollow&quot;&gt;pager.php?start=20 id-&gt;clicker &gt;but clicking on link that is generated in pager.php, ajax request not working anymore and it just normal open pager.phpAny idea?Thanks</description> <content:encoded><![CDATA[<p>Hi, I have very strange problem,when trying to make page navigation with this code.</p><p> On first click everything for great:</p><p><a
href rel="nofollow">pager.php?start=10 id-&gt;clicker &gt;</p><p>Now in pager.php it again generate this link</p><p></a><a
href rel="nofollow">pager.php?start=20 id-&gt;clicker &gt;</p><p>but clicking on link that is generated in pager.php, ajax request not working anymore and it just normal open pager.php</p><p>Any idea?</p><p>Thanks</a></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 6/19 queries in 0.020 seconds using disk

Served from: davidwalsh.name @ 2010-09-02 23:46:15 -->