Loader with mode Frame not working anymore in Internet Explorer 8

  1. #1

    Loader with mode Frame not working anymore in Internet Explorer 8

    Hi,

    My loader with mode Frame isn't working anymore in IE8. In all other browsers it works fine and also in IE9.

    <ext:Panel runat="server" Border="False" Flex="1" >
        <Loader runat="server" AutoLoad="false" Url="~/PreviewDocument.ashx" Mode="Frame" DisableCaching="true" >
            <LoadMask Msg="<%$ Resources:Global, Loading %>" ShowMask="True" />
            <Params>
               <ext:Parameter Name="DocumentID" Value="" />                  
            </Params> 
        </Loader>
    </ext:Panel>
    code-behind

    Me.PanelPreviewDocumentContent.Loader.Params("DocumentID") = DocumentID
    Me.PanelPreviewDocumentContent.LoadContent()
    In IE8, i receive the following javascript error:
    ext.axd?v=15368
    Invalid Argument: t[v.name]=w

    ps: I'm working with version: 2.1.0.15368
    Last edited by Birgit; Sep 26, 2012 at 10:14 AM.
  2. #2
    Please provide test sample
    Do you able to reproduce the issue on any sample from Examples Explorer?
  3. #3

    Example to reproduce error for IE8

    Hi Vladimir,

    Here you have a simple example to reproduce the error:

    Default.aspx
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
           <ext:ResourceManager ID="ResourceManager1" runat="server" DirectMethodNamespace="ParentMethods" /> 
    
                <ext:Viewport runat="server" Layout="FitLayout">
                    <Content>
                        <ext:Button ID="bntLoad" runat="server" Text="Show Window">
                            <Listeners>
                                <Click Handler="ParentMethods.ShowPreviewDocument()" />
                            </Listeners>
                        </ext:Button>
                    </Content>
                </ext:Viewport>
           
                <ext:Window ID="WindowPreviewDocument" runat="server" 
                    Title="Preview Document"  
                    Hidden="true"
                    Width="730" 
                    Height="630"
                    Resizable="false"
                    Closable="false"
                    Draggable="true"
                    Modal="True"
                    ToFrontOnShow="true"
                    FocusOnToFront="true"
                    DefaultButton="btnOK"
                    layout="VBoxLayout" 
                    BodyPadding="10">
                    <LayoutConfig>
                        <ext:VBoxLayoutConfig Align="Stretch" />
                    </LayoutConfig>
                    <Items>
                        <ext:DisplayField ID="txtPreviewMessage" runat="server" />
                        <ext:Panel ID="PanelPreviewDocumentContent" runat="server" Border="False" Flex="1" >
                            <Loader runat="server" AutoLoad="false" Url="~/PreviewDocument.ashx" Mode="Frame" DisableCaching="true" >
                                <LoadMask Msg="Loading" ShowMask="True" />
                                <Params>
                                    <ext:Parameter Name="DocumentID" Value="" />
                                </Params> 
                            </Loader>
                        </ext:Panel>
                    </Items>
                    <Buttons>
                        <ext:Button ID="btnOK" runat="server" Text="No" Scale="Large" IconAlign="Left" OnClientClick="#{WindowPreviewDocument}.hide();" />
                    </Buttons>
                </ext:Window> 
           
        </div>
        </form>
    </body>
    </html>
    Default.aspx.vb
    Imports Ext.Net
    
    
    Partial Class _Default
        Inherits System.Web.UI.Page
    
        <DirectMethod()> _
        Public Sub ShowPreviewDocument()
            Me.PanelPreviewDocumentContent.Loader.Params("DocumentID") = "someid"
            Me.PanelPreviewDocumentContent.LoadContent()
            Me.WindowPreviewDocument.Show()
        End Sub
    
    End Class
    PreviewDocument.aspx
    <%@ WebHandler Language="VB" Class="PreviewDocument" %>
    
    Imports System
    Imports System.Web
    
    Public Class PreviewDocument : Implements IHttpHandler, IReadOnlySessionState
        
        Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
            Dim _DocumentID As System.String
            Dim _DocumentPDFContent As System.Byte() =Convert.FromBase64String("yourbytearray")
            
            Try
                _DocumentID = context.Request.Params("DocumentID")
               
                context.Response.Clear()
                context.Response.ContentType = "application/pdf"
                context.Response.AddHeader("Content-Disposition", "inline;")
                context.Response.BinaryWrite(_DocumentPDFContent)
                HttpContext.Current.ApplicationInstance.CompleteRequest()
            Catch ex As Exception
                Throw
            End Try
        End Sub
     
        Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
            Get
                Return False
            End Get
        End Property
    
    End Class
    The error only appears in IE8. Under Chrome i can see my document in the preview window.

    Thanx!
  4. #4
    Confirm, fixed in SVN
    At this moment, workaround is to remove LoadMask in Loader
  5. #5

    solved

    Hi Vladimir,

    Thanx a lot for the quick interaction.
    It's working now! You can mark it as solved.

    Thanx!

Similar Threads

  1. Replies: 5
    Last Post: May 18, 2012, 1:41 PM
  2. Loader and Frame
    By Birgit in forum 2.x Help
    Replies: 0
    Last Post: Apr 17, 2012, 12:17 PM
  3. [CLOSED] internet explorer cannot open the internet site
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 28, 2009, 10:30 AM
  4. Internet Explorer 8
    By Ben in forum Open Discussions
    Replies: 3
    Last Post: Feb 25, 2009, 12:38 AM
  5. Replies: 2
    Last Post: Oct 21, 2008, 12:52 PM

Posting Permissions