Continuation of IE7 ASP.NET AJAX problems

Last post 05-08-2008 6:35 AM by kreid. 2 replies.

Sort Posts:

  • Continuation of IE7 ASP.NET AJAX problems

    05-07-2008, 10:40 AM
    • Loading...
    • kreid
    • Joined on 10-19-2006, 12:15 PM
    • Posts 85

     Hi,

    I am developing a Web Portal application.  I am testing the UI and it works flawlesly in FF, but does not work in IE.  

    I have made some changes to my code since my last post (http://forums.asp.net/t/1247411.aspx).  It is hard to pin down what is wrrong at this stage exactly, and I think there may be many problems, but the two symptoms that appear at this stage are:

    Microsoft JScript runtime error: Object required.
    which happens at this line when one of my data widgets has downloaded data:
    _getElement("widget_content_msg_100").style.display = "block";

    this error does NOT happen on the initial run of IE, only when the page is refreshed/reloaded.


    The next error is:
    htmlfile: unknown runtime error
    at the line shown below - this is run when I create the widgets:

    var remote_container = document.createElement('div');
                Sys.UI.DomElement.addCssClass(remote_container, "remote_container");
                //remote_container.setAttribute('class', 'remote_container');
                remote_container.setAttribute('id', 'remote_container_' + widget.UId);
                var iframe_element = document.createElement('iframe');
                Sys.UI.DomElement.addCssClass(iframe_element, "remote_iframe");
                //iframe_element.setAttribute('class', 'remote_iframe');
                iframe_element.setAttribute('id', 'remote_iframe_' + widget.UId);
                iframe_element.setAttribute('src', widget.Url + '?date=01/02/2008');
                iframe_element.setAttribute('frameborder', '0');
                iframe_element.setAttribute('marginwidth', '0');
                iframe_element.setAttribute('marginheight', '0');
                iframe_element.setAttribute('align', 'left top');
                iframe_element.setAttribute('onLoad', 'calcHeight(' + widget.UId + ')');
                iframe_element.innerHTML = "An iframe capable browser is required to view this web site."; ///////////////// THIS LINE
                remote_container.appendChild(iframe_element);  
                widget_body.appendChild(remote_container);


    Any help apreciated,
    Thanks, kmreid

  • Re: Continuation of IE7 ASP.NET AJAX problems

    05-07-2008, 11:30 PM
    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: Continuation of IE7 ASP.NET AJAX problems

    05-08-2008, 6:35 AM
    • Loading...
    • kreid
    • Joined on 10-19-2006, 12:15 PM
    • Posts 85

    Thanks for the reply,

    From reading that article I can only conclude that since I am using the ScriptManager, everything will be loaded when I need it - ie: at least by page_load, which I am using.  I my ScriptManager, I also have the attribute LoadScriptsBeforeUI=false.

    But it still doesn't explain why FF and IE are different.

    Ideas?

    Thanks, kreid
     


     

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter