Thank you for your quick response. I really did use just "clientWidth" in
my testing. The parens were added in my haste.
My site is not online, but I can give you some snippets..
The element in question:
<span onclick="showPass()" class="downentry" id="ent-13">John Payne</span>
The CSS:
.downentry {
text-decoration:none;
position: relative;
white-space: nowrap;
display: block;
width: auto;
}
In the Firebug console I've tried:
$("#ent-13").width() ( returns null)
$("#ent-13").outerWidth() (returns null)
document.getElementById("ent-13").clientWidth (returns 0)
I have successfully accessed these properties a zillion times before and
never had this problem until now. One thing that IS different, and it just
occurred to me, is that all of these elements I'm having difficulty with
are inside of a Qtip. I have other code with using the ...clientWidth
property that works fine. Nonetheless, Firebug doesn't seem to have any
trouble wading through it Qtip or not.
I'm very grateful that you even answered me and feel reluctant to continue
in this forum since it might be a Qtip issue. No hard feelings if no one
decides to reply!
Thanks,
Jim
On Sunday, September 8, 2013 12:56:49 PM UTC-4, Jim Stapleton wrote:
>
> This is not really a Firebug issue per se, but a "how do you do it" one.
> I'm trying to obtain the width of an element and regardless of method used
> (JQuery or pure Javascript) the return from say,
> document.getElementById("ent-13").clientWidth() or $("#ent-13").width()
> both return zero. When I look at the DOM panel in Firebug I see a non-zero
> value.
>
> What kind of magic does Firebug use to get real values when the standard
> ones don't work?
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/firebug.
To view this discussion on the web visit
https://groups.google.com/d/msgid/firebug/6159c74e-1c47-45b3-9047-874d1f248d09%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.