[Rails-spinoffs] Scriptaculous: Effects.js SlideDown Firefox Possible Bug

Chris Korhonen
Thu, 04 Aug 2005 05:19:45 -0000

Hi,

 I''ve been playing around with Scriptaculous with a view to
incorporating the effects.js component into a Web form I am
developing, and have noticed a possible bug when the page is being
rendered with Firefox.

 If you take a look at the screenshots below you can see that in
firefox the text is being displayed in the wrong place. The other
screenshot shows the desired result which appears in both IE and
Opera.

http://img284.imageshack.us/img284/4769/bugfirefox7co.gif

http://img121.imageshack.us/img121/1559/bugieopera5jv.gif

 The code I am using is:



				<label
 for="nameoncard">Name to appear on Card
*</
label>


				<
input id="nameoncard" onfocus="new
Effect.BlindDown(''help_cardname'');"
onblur="new Effect.BlindUp(''help_cardname'');"
type="text"
>
				<div class="help" style"display: none;"
id="help_cardname">You may edit this text, but
it cannot exceed 20 characters and it must include your full last
name.</
small>




 Is this a bug or am I doing something stupid? :)

 Kind Regards

 Chris Korhonen
 ckorhonen@gmail.com