Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gary Prothero 14 posts 34 karma points
    Sep 30, 2010 @ 01:01
    Gary Prothero
    0

    iFrame in Custom Section

    I have created a custom section and the aspx page is larger than the area of the iFrame.  Is there a way to turn on scroll bars.

           public override void RenderJS(ref System.Text.StringBuilder Javascript)
            {
                Javascript.Append(
                    @"
                        function openAdministration()
                        {
                            parent.right.document.location.href = 'http://localhost:52523/Sabert1/default.aspx';
                        }
                ");
            }

  • Nik Wahlberg 639 posts 1235 karma points MVP
    Sep 30, 2010 @ 02:48
    Nik Wahlberg
    0

    What are you using to render the content in the right frame? Are you utilizing the umbraco.uicontrols? Like:

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page.aspx.cs" Trace="false" MasterPageFile="/umbraco/masterpages/umbracoPage.Master" Inherits="SomeProject.Lib" %>
    <%@ Register Assembly="controls" Namespace="umbraco.uicontrols" TagPrefix="cc1" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">
        <cc1:UmbracoPanel ID="UmbracoPanel" runat="server">
            <cc1:Pane ID="ReadPane" runat="server">
                <cc1:PropertyPanel ID="PropertyPanel1" runat="server" Text="Custom Section Name Here">
                    <!-- your content here -->
                </cc1:PropertyPanel>
            </cc1:Pane>
        </cc1:UmbracoPanel>
    </asp:Content>

    -- Nik

  • Gary Prothero 14 posts 34 karma points
    Sep 30, 2010 @ 17:05
    Gary Prothero
    0

    openAdministration() is calling an External DynamicData website with the openAdministration javascript function.  The site appears fine in the iFrame except some pages are larger than the iFrame size and there are no scroll bars.  Using Firebugs I modified the iFrame to scroll, however, I do not know how to change the iFrame in the code above to set the iFrame to have scrollbars.

     

    Is the  parent.right.document an iFrame and is there a jquery and javascript attribute I can set to turn on scroll bar.

    Thanks,

  • Adam Prendergast 33 posts 77 karma points c-trib
    Sep 25, 2012 @ 17:16
    Adam Prendergast
    0

    Did you manage to solve this? I have a similar issue.

  • Adam Prendergast 33 posts 77 karma points c-trib
    Sep 26, 2012 @ 14:05
    Adam Prendergast
    0

     

    function openFunction()
                        {
                            document.getElementById('right').scrolling = 'auto';
                            parent.right.document.location.href = 'yourfile.aspx';
                        }

     

    That should do the trick.

     

     

Please Sign in or register to post replies

Write your reply to:

Draft