Hi guys,
I'm trying to get the Width value of a element using the getWidth()
functions in prototype.
My Code looks like this:
var width = $('myElement').firstChild.getWidth();
This code works fine in FX but not in IE, strange as It seems!
On the other hand, this code, not pointed to an child element works
fine in both browsers.
var width = $('myElement').getWidth();
And for your information, this code also works in both browsers. And
my question is, isn't this exactly how the getWidth() function works?
var width = $('myElement').firstChild.offsetWidth;
Can someone help me solve this problem.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---