[Proto-Scripty] Re: .getHeight() is not a function

2008-11-27 Thread Ken Snyder
Be sure to extend the previousSibling element:

var prev = $(element).previousSibling
alert($(prev).getHeight())

- Ken

On Thu, Nov 27, 2008 at 8:53 AM, Diodeus [EMAIL PROTECTED] wrote:


 This code works in IE, bot for FF:

 var prev = $(element).previousSibling
 alert(prev.getHeight())

 In FF gives me prev.getHeight()) is not a function.

 Has FF gone mad? Have I?

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: .getHeight() is not a function

2008-11-27 Thread Diodeus

Nope, that doesn't work either.


On Nov 27, 11:40 am, Ken Snyder [EMAIL PROTECTED] wrote:
 Be sure to extend the previousSibling element:

 var prev = $(element).previousSibling
 alert($(prev).getHeight())

 - Ken

 On Thu, Nov 27, 2008 at 8:53 AM, Diodeus [EMAIL PROTECTED] wrote:

  This code works in IE, bot for FF:

  var prev = $(element).previousSibling
  alert(prev.getHeight())

  In FF gives me prev.getHeight()) is not a function.

  Has FF gone mad? Have I?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: .getHeight() is not a function

2008-11-27 Thread jason maina

My 2cents contribution:
What is output for alert(prev)? This will only help in identifing if
the element actually can be identified or even exists...

Regards
jason

On 11/27/08, Diodeus [EMAIL PROTECTED] wrote:

 Nope, that doesn't work either.


 On Nov 27, 11:40 am, Ken Snyder [EMAIL PROTECTED] wrote:
 Be sure to extend the previousSibling element:

 var prev = $(element).previousSibling
 alert($(prev).getHeight())

 - Ken

 On Thu, Nov 27, 2008 at 8:53 AM, Diodeus [EMAIL PROTECTED] wrote:

  This code works in IE, bot for FF:

  var prev = $(element).previousSibling
  alert(prev.getHeight())

  In FF gives me prev.getHeight()) is not a function.

  Has FF gone mad? Have I?
 


-- 
Sent from Gmail for mobile | mobile.google.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: .getHeight() is not a function

2008-11-27 Thread kangax

On Nov 27, 10:53 am, Diodeus [EMAIL PROTECTED] wrote:
 This code works in IE, bot for FF:

 var prev = $(element).previousSibling
 alert(prev.getHeight())

 In FF gives me prev.getHeight()) is not a function.

 Has FF gone mad? Have I?

Perhaps, `previousSibling` is not an element node, but a text/comment
node? If so, then using `previous()` instead of `previousSibling`
should do the trick.

--
kangax
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---