Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing scrollbars from dynamic IFrame
Message
From
09/01/2012 08:45:53
 
 
To
All
General information
Forum:
Javascript
Category:
IFrame
Title:
Removing scrollbars from dynamic IFrame
Miscellaneous
Thread ID:
01532460
Message ID:
01532460
Views:
61
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
Next
Reply
Map
View

Click here to load this message in the networking platform