{"id":22,"date":"2005-07-08T22:19:32","date_gmt":"2005-07-09T03:19:32","guid":{"rendered":"http:\/\/pessoal.org\/wp\/?p=22"},"modified":"2005-07-17T10:48:55","modified_gmt":"2005-07-17T15:48:55","slug":"web-20-my-ass","status":"publish","type":"post","link":"https:\/\/pessoal.org\/blog\/2005\/07\/08\/web-20-my-ass\/","title":{"rendered":"Web 2.0 my ass"},"content":{"rendered":"<p>So I&#8217;m playing with script.aculo.us for a side project, trying to create a &lt;DIV&gt; that will slide into and out of view, but something is not working quite right. When I use the Effect.SlideDown() and then Effect.SlideUp() repeatedly, it will continuously grow the height of the element.<\/p>\n<p>Everything seems to be fine, the documentation tells me that I&#8217;m doing the right thing, which is to create two &lt;DIV&gt;s, but somehow it doesn&#8217;t work on my version, but it works perfectly at the demonstration page on the script.aculo.us website. Even the bug entry about it says that in order to fix it, I should simply use block level elements, which I&#8217;m doing.<\/p>\n<p>So here&#8217;s the fix for this if someone else ever hits the same problem:<\/p>\n<p>Don&#8217;t use:<\/p>\n<p><code>&nbsp;&nbsp;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n<\/code><\/p>\n<p>like a real monkey should to make your HTML code easier to read, but rather this:<\/p>\n<p><code>&lt;\/div&gt;&lt;\/div&gt;<br \/>\n<\/code><\/p>\n<p>Doing that fixes this apparent bug, which makes no sense to me.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I&#8217;m playing with script.aculo.us for a side project, trying to create a &lt;DIV&gt; that will slide into and out of view, but something is not working quite right. When I use the Effect.SlideDown() and then Effect.SlideUp() repeatedly, it will continuously grow the height of the element. Everything seems to be fine, the documentation tells [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/posts\/22"}],"collection":[{"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":0,"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}