FYI prototype lib has Element.getHeight() which wraps up the offset height call..
Matt > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Martinez, Andrew > Sent: 26 April 2006 14:52 > To: rails-spinoffs@lists.rubyonrails.org > Subject: RE: [Rails-spinoffs] how to use Effect.BlindUp for > resizing a div > > > var height = someElementReference.offsetHeight; > > and to set it: > > someElementReference.style.height = "100"; > > It is worth saying that offsetHeight and offsetWidth are > non-standard compliance. They will give you the total > rendering height and this will cause problems in IE since > they use a different box model than FireFox. So you will have > to do some height juggling in IE if you are using padding, > margins, or borders. (read up on the box model problem if you > are wondering about it...) > > For setting the height, this is a CSS declaration and can use > any valid CSS value. The default is pixels but you can use > other such as em. > > Andrew Paul Martinez > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Joe Hudson > Sent: Wednesday, April 26, 2006 9:44 AM > To: rails-spinoffs@lists.rubyonrails.org > Subject: RE: [Rails-spinoffs] how to use Effect.BlindUp > for resizing a div > > If no one has an answer to this, would anybody be able to > tell me how to do the following: > > - how to get the height of a block element > - how to set the height of a block element > > I'm sure these are trivial but I just haven't found the > correct methods to do so. Thanks very much. > > Joe > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:rails-spinoffs- [EMAIL PROTECTED] On Behalf Of > > Joe Hudson > > Sent: Tuesday, April 25, 2006 10:59 AM > > To: rails-spinoffs@lists.rubyonrails.org > > Subject: [Rails-spinoffs] how to use Effect.BlindUp for > resizing a div > > > > I would like to resize a div to half the size that it was and would > > like to use the BlindUp transition. I think that I need > the scaleTo > > parameter from > > the docs: > http://wiki.script.aculo.us/scriptaculous/show/Effect.BlindDown > > But this doesn't exactly work. > > > > new Effect.BlindUp(gridId, {scaleTo: 50}); > > > > What happens is that the div does the blind up transition > until it is > > half the original size then it disappears. Is there any > way I can not > > make the div disappear? Thanks for your help. > > > > Joe > > > > > > > > _______________________________________________ > > Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > _______________________________________________ > Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > _______________________________________________ > Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > *********************************************************************************** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorized and regulated by the Financial Services Authority This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our websites at: http://www.rbos.com http://www.rbsmarkets.com *********************************************************************************** _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs