<?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: 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>Tue, 07 Feb 2012 16:41:18 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Julian Lam</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-27006</link> <dc:creator>Julian Lam</dc:creator> <pubDate>Tue, 27 Sep 2011 14:39:17 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-27006</guid> <description>Hi David,Stumbled upon this trying to figure out exactly WHY Request.HTML should be preferred over Request. The mootools documentation states that Request.HTML is &quot;specifically made for receiving HTML&quot;, but the only difference I can find is that the returns are different in the onSuccess event.I prefer knowing &quot;why&quot; I am choosing one method over the other, thanks :)</description> <content:encoded><![CDATA[<p>Hi David,</p><p>Stumbled upon this trying to figure out exactly WHY Request.HTML should be preferred over Request. The mootools documentation states that Request.HTML is &#8220;specifically made for receiving HTML&#8221;, but the only difference I can find is that the returns are different in the onSuccess event.</p><p>I prefer knowing &#8220;why&#8221; I am choosing one method over the other, thanks :)</p> ]]></content:encoded> </item> <item><title>By: Tripti Sharma</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-22731</link> <dc:creator>Tripti Sharma</dc:creator> <pubDate>Mon, 14 Feb 2011 23:30:26 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-22731</guid> <description>Hi I am trying to create tooltip like this :
var Tips1 = new Tips($$(‘.tool_tips1′),{
onShow: function(toolTipElement){
console.log(“this is show event”);
},
onHide: function(toolTipElement){
console.log(“this is hide event”);
}
});$$(‘.tool_tips1′).each(function(el)
{var hidden_el = el.getNext(‘input’);console.log(“id :”+hidden_el);
var value = hidden_el.getProperty(‘value’);
el.store(‘tip:title’,value);
el.store(‘tip:text’,”);
});It works fine in FireFox but gives error in IE8.
Error is :
Object doesn’t support this property or method mootools-core-1.3.js, line 382 character 30Its printing the “this is show event” means onShow is working  . The error comes when I mouseout the element . Before firing the onHide event it gives this error.Please send me the reply if you find the bug.
Thanks,
Tripti</description> <content:encoded><![CDATA[<p>Hi I am trying to create tooltip like this :<br
/> var Tips1 = new Tips($$(‘.tool_tips1′),{<br
/> onShow: function(toolTipElement){<br
/> console.log(“this is show event”);<br
/> },<br
/> onHide: function(toolTipElement){<br
/> console.log(“this is hide event”);<br
/> }<br
/> });</p><p>$$(‘.tool_tips1′).each(function(el)<br
/> {</p><p>var hidden_el = el.getNext(‘input’);</p><p>console.log(“id :”+hidden_el);<br
/> var value = hidden_el.getProperty(‘value’);<br
/> el.store(‘tip:title’,value);<br
/> el.store(‘tip:text’,”);<br
/> });</p><p>It works fine in FireFox but gives error in IE8.<br
/> Error is :<br
/> Object doesn’t support this property or method mootools-core-1.3.js, line 382 character 30</p><p>Its printing the “this is show event” means onShow is working  . The error comes when I mouseout the element . Before firing the onHide event it gives this error.</p><p>Please send me the reply if you find the bug.<br
/> Thanks,<br
/> Tripti</p> ]]></content:encoded> </item> <item><title>By: danicotra</title><link>http://davidwalsh.name/basic-ajax-requests-mootools/comment-page-1#comment-21267</link> <dc:creator>danicotra</dc:creator> <pubDate>Wed, 10 Nov 2010 00:11:43 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/basic-ajax-requests-mootools#comment-21267</guid> <description>I see in the example you refer to a specific link (whose id is &#039;ajax-alert&#039;)
now suppose I want to associate the request calling to a set of buttons whose ids are something like: &#039;linkX&#039;, &#039;linkA&#039;, &#039;link123&#039;, ...
How shall I do? (please don&#039;t say I should add
&lt;code&gt;
$(&#039;link-id&#039;).addEvent(&#039;click&#039;, function(event) {
...
&lt;/code&gt;
for each button... they are dinamically generated though!</description> <content:encoded><![CDATA[<p>I see in the example you refer to a specific link (whose id is &#8216;ajax-alert&#8217;)<br
/> now suppose I want to associate the request calling to a set of buttons whose ids are something like: &#8216;linkX&#8217;, &#8216;linkA&#8217;, &#8216;link123&#8242;, &#8230;<br
/> How shall I do? (please don&#8217;t say I should add<br
/> <code><br
/> $('link-id').addEvent('click', function(event) {<br
/> ...<br
/> </code><br
/> for each button&#8230; they are dinamically generated though!</p> ]]></content:encoded> </item> <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> </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/17 queries in 0.014 seconds using disk: basic
Object Caching 874/874 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-08 00:07:44 -->
