[CLOSED] IE9 invalid calling object setting iframe url

  1. #1

    [CLOSED] IE9 invalid calling object setting iframe url

    So I just grabbed the most recent source for 1.x which apparently added some compat fixes for IE9.. which is interesting coincidence. Since the update, I cannot set the url of a window to an ashx which writes a pdf to the response stream. I paused at the spot where the error was happening and you can clearly see that there is something VERY wrong (see right side of debug window). Again, this is brand new as of the update. Any ideas?
    founds this tidbit: http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
    Not very helpful to me at the level of which I work with the library.. thought it might be helpful to you.
    Last edited by Daniil; Apr 16, 2013 at 10:19 AM. Reason: [CLOSED]
  2. #2
    Hello!

    We are investigating.
  3. #3
    Thank you :)
  4. #4
    Sorry, couldn't reproduce with the latest Ext.NET sources. Can you say what SVN url do you use. I've tried the following example:

    ASPX:

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            var win = new Window {
                ID = "Window1",
                Width = Unit.Pixel(1000),
                Height = Unit.Pixel(600),
                Modal = true,
                Collapsible = true,
                Maximizable = true,
                Hidden = true
            };
            
            win.AutoLoad.Url = "/PdfHandler.ashx";
            win.AutoLoad.Mode = LoadMode.IFrame;
    
            win.Render(this.Form);
        }
    </script>
    
    <!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>Ext.NET Examples</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            
            <ext:Button runat="server" Text="Show Window" Icon="Application">
                <Listeners>
                    <Click Handler="#{Window1}.show(this);" />
                </Listeners>
            </ext:Button>
        </form>
    </body>
    </html>
    ASHX:
    public class PdfHandler : IHttpHandler
    	{
    
    		public void ProcessRequest(HttpContext context)
    		{
    			context.Response.Clear(); 
    			context.Response.ClearContent(); 
    			context.Response.ClearHeaders(); 
    			context.Response.ContentType = "application/pdf";
    
    			Stream fileStream = new FileStream(context.Server.MapPath("~/TestDocument.pdf"), FileMode.Open);
    			byte[] buffer = new byte[16 * 1024];
    			using (MemoryStream ms = new MemoryStream())
    			{
    			  int read;
    			  while ((read = fileStream.Read(buffer, 0, buffer.Length)) > 0)
    			  {
    				ms.Write(buffer, 0, read);
    			  }
    				context.Response.BinaryWrite(ms.ToArray()); 
    			}
    			fileStream.Close();
    			context.Response.Flush();   
    		}
    
    		public bool IsReusable
    		{
    			get
    			{
    				return false;
    			}
    		}
    	}
  5. #5
    I did some more messing around and I fixed it. It had to do with a mismatch on the auotload mode and the content disposition. Looks like I had a bad merge on a version and an unregistered (in our logs) bug leaked back in.

    Thanks for your time.. sorry to have sent you on a wild goose chase. You guys are professional as always.
  6. #6
    Not a problem and thank you for the kind words!

Similar Threads

  1. [CLOSED] Setting StoreID on GridFilter to IFrame location
    By peter.campbell in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 27, 2012, 1:39 PM
  2. Replies: 2
    Last Post: Oct 12, 2011, 7:49 AM
  3. Replies: 1
    Last Post: Sep 13, 2011, 5:19 PM
  4. Replies: 2
    Last Post: Feb 15, 2011, 8:24 PM
  5. Replies: 0
    Last Post: May 14, 2009, 10:11 PM

Tags for this Thread

Posting Permissions