Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Same level offset frames
Message
From
02/02/2012 15:13:36
 
 
To
All
General information
Forum:
Javascript
Category:
IFrame
Title:
Same level offset frames
Miscellaneous
Thread ID:
01534344
Message ID:
01534344
Views:
58
Lets assume the fact that I have a main container with several IFrames at the same level. Thus, I could have one IFrame on the left and next to it, another IFrame with about the same height.

When I do a specific operation, I need to obtain the exact pixel in width from the browser itself. I can determine the width offset of a specific Div on that page. But, in order to position something exactly where I want, I need to also obtain the width of the IFrame sitting on the left.

So, basically, the IFrame on the right knows about its parent. In this case, it is the main container. But, it doesn't know anything about the IFrame on the left. It could, but I would have to hardcode it such as window.parent.TheFrameOnTheLeft.scrollWidth. But, I need a generic way of knowing it. Is there somekind of formula I could use to obtain all the frame sitting on the left side of the frame I am working with, no matter how much frames there would be?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform