Jump to content

jpettyjohn

Members
  • Posts

    4
  • Joined

  • Last visited

jpettyjohn's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Thanks asylum, that worked perfecton FF and Safari but exploded on Internet Exploder unforunately. Sais "document.defulatView" is not an object, is there an IE equivalent?
  2. I can't constrain it, though it'd be simpler. But I'll give you what the scene so you can think with the product and maybe we can work it back from there.There is a table basically set up like this: <table> <tr> <td id="left_Bin"><!-- There are tables and divs in here that expand and contract depending on dynamic content --> </td> <td> <table> <tr> <td> </td> </tr> <tr id="lower_middeNav"> <td> </td> </tr> <table> </td> <td> </td> </tr></table> It's a bit a messy as it is an already exsisting site and structure.What needs to happen is that the content of "lower_middleNav" needs to be bottom aligned with the outer table - which is effectively bottom aligned with the "left_Bin".So anyways, I want the resultant left_Bin.height resultant from it's content so I can set the other heights proportionally.
  3. Oh, the findDOM just checks the browser type inside of it. It runs document.getElementById() inside of it and returns the element found (unless under specific circumstances, which in this case it isn't).I just tried it with style, still coming up with the same results. Using the > objRef.style.getHeight method I get undefined, come up with "" on straight property access > objRef.style.height.Is there something that specifically that will check it's actual length? The browser knows the length, it has to so it can render so I figure it exsists somewhere. The DOM seems to just access what is written, not what it actually is. I think this would be the same case if I hard coded the height too short, it would take it as a minimum height and expand it anyways, but the value of that expanded length has to be somewhere.
  4. I am trying to resize a table cell, id="lower_middleNav", based on the height of another cell, id="left_Bin", on the same page.Neither of these have their heights defined to start with and "left_Bin" grows in height depending on the content (which is pulled in dynamically on the server).So far I've tried accessing height through the DOM but it comes up as undefined as it has not been defined explicitly anywhere. function getHeight(domObj) { var objRef = findDOM(domObj); return (objRef.height);} It finds the object find but not the height.How do I find the height if it isn't explicitly declared and will vary depending on the content?Whether with the DOM or otherwise.
×
×
  • Create New...