Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Sun, 29 Jan 2006 11:32:45 -0800,    group: microsoft.public.inetsdk.programming.scripting.jscript        back       


rendered width and height of table (or any other element)   
as table column widths are generally not set but determined by the window or 
container size and the cell content is there any way to find the width of any 
of the table elements? i have tried currentStyle, getAttribute and pixelWidth 
/ pixelHeight, but they all either return nothing or auto. how useful is 
that? surely it must be detectable somehow?

the reson i need this info is that i am using an iframe in a cell in a 
nested table. the nested table doesn't contain anything else and hence i have 
to manipulate the width of the containing td to get the iframe to display.
date: Sun, 29 Jan 2006 11:32:45 -0800   author:   uniquely frustrated uniquely

Re: rendered width and height of table (or any other element)   
"uniquely frustrated" <uniquely frustrated@discussions.microsoft.com>
wrote in message
news:A84B5236-93D0-4DAA-A98A-7EF67DE19F47@microsoft.com
> as table column widths are generally not set but determined by the
> window or container size and the cell content is there any way to
> find the width of any of the table elements?

offsetWidth

> the reson i need this info is that i am using an iframe in a cell in a
> nested table. the nested table doesn't contain anything else and
> hence i have to manipulate the width of the containing td to get the
> iframe to display.

Can't you specify an <iframe width="X"> attribute, where X is the 
desired width of an iframe in pixels?
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Sun, 29 Jan 2006 14:56:06 -0500   author:   Igor Tandetnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us