ASPX templates
Version 4.x > ASPX templates > Scroll Bar in the Template View modes: 
User avatar
Member
Member
Thomasbe-datacom.co - 9/2/2012 11:43:00 PM
   
Scroll Bar in the Template
Hi,

I am trying to create a page with a template which contains an Iframe.

The problem i am having is that the template has the scroll bar and not the actual webpage itself i.e its not on the very right had of your browser and or there are 2 scroll bars

You can see it following this link:

http://www.suzannegrae.com.au/SpringRewards

What i want to know is it possible to either make the template larger to hold the Iframe with no scrollbar or if there is just a better way to go about this?

Thanks in advance

Kind Regards,
Thomas



*IFRAME CODE

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script language="javascript" type="text/javascript">
function resizeFrame(width, height) {
width += 32;
height += 32;
var elm = document.getElementById("rewardFrame")
if (elm)
{
elm.style.height = height + "px";
}
//$('#rewardFrame').content().find('html,body').scrollTop(0);
}
</script> <iframe frameborder="0" onload="parent.resizeFrame(document.body.scrollWidth, document.body.scrollHeight);" src="http://pages.news.suzannegrae.com.au/page.aspx?QS=472529ec60bdf32a6c76f0407360bc23ed1d93973dd28366#Register" style="width:100%;height:100%" id="rewardFrame"></iframe>

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 9/3/2012 2:41:02 AM
   
RE:Scroll Bar in the Template
Hello,

This seems to be a HTML/CSS/JS issue and not directly Kentico related. I've found some thread discussing this issue on stackoverflow. Please give that approach a try.

Best regards,
Boris Pocatko