Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Same level offset frames
Message
De
02/02/2012 15:13:36
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
IFrame
Titre:
Same level offset frames
Divers
Thread ID:
01534344
Message ID:
01534344
Vues:
55
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform