[CLOSED] Menu item goes to the backgound when file content is rendered in an iFrame

  1. #1

    [CLOSED] Menu item goes to the backgound when file content is rendered in an iFrame

    Hi,

    Browser version tested against:
    IE8

    Description:
    Menu item goes to the backgound when we display file content in the page. ref Click image for larger version. 

Name:	printscreen.png 
Views:	13 
Size:	35.4 KB 
ID:	7495

    Research.aspx
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
    
    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
        <style type="text/css">
            .x-menu.x-menu-horizontal .x-menu-list
            {
                overflow: hidden;
            }
            .x-menu.x-menu-horizontal .x-menu-list .x-menu-list-item
            {
                float: left;
            }
            .x-menu.x-menu-horizontal .x-menu-list .x-menu-list-item .x-menu-item-arrow
            {
                background: none;
            }
        </style>
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager2" runat="server" />
        <ext:Menu ID="Menu1" runat="server" Hidden="false" ShowSeparator="false" EnableScrolling="false"
            Cls="x-menu-horizontal" Floating="false" SubMenuAlign="tl-bl?">
            <Items>
                <ext:MenuItem ID="MenuItem1" runat="server" Text="Our first Menu" Icon="BulletBlue">
                    <Menu>
                        <ext:Menu ID="Menu2" runat="server" BoxMinWidth="110">
                            <Items>
                                <ext:MenuItem ID="MenuItem2" runat="server" Text="Item1" />
                                <ext:MenuItem ID="MenuItem3" runat="server" Text="Item2" />
                                <ext:MenuItem ID="MenuItem4" runat="server" Text="Item3" />
                                <ext:MenuItem ID="MenuItem5" runat="server" Text="Item4" />
                                <ext:MenuItem ID="MenuItem6" runat="server" Text="Item5" />
                            </Items>
                        </ext:Menu>
                    </Menu>
                </ext:MenuItem>
                <ext:MenuItem ID="MenuItem7" runat="server" Text="Our second Menu" Icon="BulletGreen">
                    <Menu>
                        <ext:Menu ID="Menu3" runat="server" BoxMinWidth="110">
                            <Items>
                                <ext:MenuItem ID="MenuItem8" runat="server" Text="Item1" />
                                <ext:MenuItem ID="MenuItem9" runat="server" Text="Item2" />
                                <ext:MenuItem ID="MenuItem10" runat="server" Text="Item3" />
                                <ext:MenuItem ID="MenuItem11" runat="server" Text="Item4" />
                                <ext:MenuItem ID="MenuItem12" runat="server" Text="Item5" />
                                <ext:MenuItem ID="MenuItem13" runat="server" Text="Item6" />
                                <ext:MenuItem ID="MenuItem14" runat="server" Text="Item7" />
                                <ext:MenuItem ID="MenuItem15" runat="server" Text="Item8" />
                                <ext:MenuItem ID="MenuItem16" runat="server" Text="Item9" />
                                <ext:MenuItem ID="MenuItem17" runat="server" Text="Item10" />
                                <ext:MenuItem ID="MenuItem18" runat="server" Text="Item11" />
                            </Items>
                        </ext:Menu>
                    </Menu>
                </ext:MenuItem>
            </Items>
        </ext:Menu>
        <ext:Panel runat="server" ID="_pnl" Title="Panel" Height="200">
            <AutoLoad Url="/Research/GetPdfFile" Mode="IFrame" />
        </ext:Panel>
        </form>
    </body>
    </html>
    ResearchController

    public class ResearchController : Controller
        {
            public ActionResult Research()
            {
                return View();
            }
    
            public FileContentResult GetPdfFile()
            {
                String filePath = Path.Combine(HttpContext.Server.MapPath("../Views/Research")
                            , Path.GetFileName("pdffile.pdf"));
                using (FileStream fs = new FileStream(filePath, FileMode.Open,
                                 FileAccess.Read, FileShare.Read))
                {
                    byte[] buffer = new byte[fs.Length];
                    fs.Read(buffer, 0, (int)fs.Length);
                    return File(buffer, "application/pdf");
                }
            }
    }
    Thank you in advance.
    Last edited by Daniil; Jan 21, 2014 at 4:38 AM. Reason: [CLOSED]
  2. #2
    Hi @Daly_AF,

    Is it reproducible in IE only?

    Is it reproducible in FireFox and Chrome?
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @Daly_AF,

    Is it reproducible in IE only?

    Is it reproducible in FireFox and Chrome?
    It is reproducible only in IE(tested against IE 8).
  4. #4
    I am afraid we cannot do anything with that. IE puts an ActiveX object (with pdf) over of everything.

    Here you can find some details.
    http://stackoverflow.com/questions/1...-pdf-in-iframe

Similar Threads

  1. [CLOSED] [1.2] menu not rendered
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jul 06, 2012, 1:50 AM
  2. Replies: 2
    Last Post: Apr 02, 2012, 7:48 AM
  3. [CLOSED] Always selected Item is nothing for combobox as menu item
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 04, 2011, 4:51 PM
  4. Replies: 1
    Last Post: Oct 16, 2010, 6:53 PM
  5. Replies: 3
    Last Post: Mar 01, 2010, 4:55 AM

Posting Permissions