<?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"
	>
<channel>
	<title>Comments on: The Scriptaculous afterFinish problem</title>
	<atom:link href="http://dev-journal.3dmdesign.com/javascript/scriptaculous-afterfinish-problem/feed" rel="self" type="application/rss+xml" />
	<link>http://dev-journal.3dmdesign.com/javascript/scriptaculous-afterfinish-problem</link>
	<description>JavaScript and Ruby on Rails Application Development Journal</description>
	<pubDate>Thu, 28 Aug 2008 05:12:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Scott - 3DM Design</title>
		<link>http://dev-journal.3dmdesign.com/javascript/scriptaculous-afterfinish-problem#comment-4232</link>
		<dc:creator>Scott - 3DM Design</dc:creator>
		<pubDate>Fri, 04 Jul 2008 12:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://3dmdesign.com/dev-journal/javascript/scriptaculous-afterfinish-problem#comment-4232</guid>
		<description>Ah... yep; previously I failed to see in your first example that your code was actually calling alert immediately, rather than wrapping it in an anonymous function like so:

&lt;code&gt;Effect.toggle(boxID, ’slide’, { afterFinish: function(){ alert($(’parent’).getHeight()); } });&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Ah&#8230; yep; previously I failed to see in your first example that your code was actually calling alert immediately, rather than wrapping it in an anonymous function like so:</p>
<p><code>Effect.toggle(boxID, ’slide’, { afterFinish: function(){ alert($(’parent’).getHeight()); } });</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://dev-journal.3dmdesign.com/javascript/scriptaculous-afterfinish-problem#comment-4190</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sat, 21 Jun 2008 15:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://3dmdesign.com/dev-journal/javascript/scriptaculous-afterfinish-problem#comment-4190</guid>
		<description>Hi, n I didn't need to go that far, I simply defined the function as a variable and passed it to the toggle constructor:

var mycallback = function() {
  alert("it now works!");
};

Effect.toggle(boxID, 'slide', { afterFinish:mycallback });

This worked fine, probably a slightly different problem (like me not doing it right) than the squish problem, but thanks for the reply nevertheless =)</description>
		<content:encoded><![CDATA[<p>Hi, n I didn&#8217;t need to go that far, I simply defined the function as a variable and passed it to the toggle constructor:</p>
<p>var mycallback = function() {<br />
  alert(&#8221;it now works!&#8221;);<br />
};</p>
<p>Effect.toggle(boxID, &#8217;slide&#8217;, { afterFinish:mycallback });</p>
<p>This worked fine, probably a slightly different problem (like me not doing it right) than the squish problem, but thanks for the reply nevertheless =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott - 3DM Design</title>
		<link>http://dev-journal.3dmdesign.com/javascript/scriptaculous-afterfinish-problem#comment-4189</link>
		<dc:creator>Scott - 3DM Design</dc:creator>
		<pubDate>Fri, 20 Jun 2008 22:34:08 +0000</pubDate>
		<guid isPermaLink="false">http://3dmdesign.com/dev-journal/javascript/scriptaculous-afterfinish-problem#comment-4189</guid>
		<description>Did you try the &lt;a href="/javascript/effect-squish-callback-fix" rel="nofollow"&gt;callback fix&lt;/a&gt;? I discovered the link in the post was broken and have updated it as well.

Let me know if that solution works for you.</description>
		<content:encoded><![CDATA[<p>Did you try the <a href="/javascript/effect-squish-callback-fix" rel="nofollow">callback fix</a>? I discovered the link in the post was broken and have updated it as well.</p>
<p>Let me know if that solution works for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://dev-journal.3dmdesign.com/javascript/scriptaculous-afterfinish-problem#comment-4182</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 19 Jun 2008 11:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://3dmdesign.com/dev-journal/javascript/scriptaculous-afterfinish-problem#comment-4182</guid>
		<description>Hello, any luck with this? Appreciate this post is old but I'm using Effect.toggle and I need to call a function when it finishes. I've used:

  Effect.toggle(boxID, 'slide', { afterFinish:alert($('parent').getHeight()) });

But the alert appears before the effect finishes...</description>
		<content:encoded><![CDATA[<p>Hello, any luck with this? Appreciate this post is old but I&#8217;m using Effect.toggle and I need to call a function when it finishes. I&#8217;ve used:</p>
<p>  Effect.toggle(boxID, &#8217;slide&#8217;, { afterFinish:alert($(&#8217;parent&#8217;).getHeight()) });</p>
<p>But the alert appears before the effect finishes&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
