On 17-Sep-05, at 12:47 AM, Philip Meyer wrote:

Hi kdf <[EMAIL PROTECTED]>,

I was thinking that it must be possible to examine the rows and cols
properties in a frame/frameset.

That seems to only readback a value if you have specifically set it.

Found a simple solution:
        var maxwidth = document.body.clientWidth;

I have tested this in IE6, and it works in a window or a frame. The width is returned in pixels. This is the width of the frame, not the writeable area in the document (so it would include space used by scrollbars), so if you use it, probably best to deduct a bit from it to make artwork fit nicely.

sadly, only valid for IE from what I've read.



I can't seem to even FIND a div by id.

I use:
<DIV id="divid"></DIV>
        var elem = document.getElementById("divid");

yup, that's what I was doing too, but the part I was misisng was that it MUST be called after the body tag is rendered. i've checked in a big patch to the skin tonight, so see what you think. the right side shoudl auto adjust using a div insead of the old frame system. bound to be a few quirks I didn't catch ahead of time.

-k

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta

Reply via email to