Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing scrollbars from dynamic IFrame
Message
De
09/01/2012 08:45:53
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
IFrame
Titre:
Removing scrollbars from dynamic IFrame
Divers
Thread ID:
01532460
Message ID:
01532460
Vues:
62
I create an IFrame dynamically and I cannot remove the scrollbars. I have tried this:
function Selection(toFieldPrimaryKey,tcUrl,toFieldValue,toFieldAdditionalKey)
{
   loIFrame=document.createElement("IFRAME")
   loIFrame.name="IFrameSelection"
   loIFrame.src=tcUrl
   loIFrame.setAttribute("frameBorder","0")
   loIFrame.setAttribute("scrolling","no")
   window.parent.document.body.appendChild(loIFrame)
}
...and this:
function Selection(toFieldPrimaryKey,tcUrl,toFieldValue,toFieldAdditionalKey)
{
   loIFrame=document.createElement("IFRAME")
   loIFrame.name="IFrameSelection"
   loIFrame.src=tcUrl
   loIFrame.setAttribute("frameBorder","0")
   loIFrame.setAttribute("horizontalscrolling","no")
   loIFrame.setAttribute("verticalscrolling","no")
   window.parent.document.body.appendChild(loIFrame)
}
Any idea if there is a way to adjust the scrollbars directly from a property instead of using setAttribute()?
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