SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    NJ
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Operation aborted

    My Co-worker has ie 7.0.5730.11CO and when he tries to load the page I created , he gets operation aborted...dialogue from IE..My code is below..what would be causing this error? Please don't say upgrade to IE8 : ) as it's not an option..

    FileDownloadUI.js
    Code:
    var file = "";
    var strFile = "";
    
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    prm.add_initializeRequest(prm_InitializeRequest);
    prm.add_endRequest(prm_EndRequest);
    
    $("#dialog-message").dialog({
        show: 'slide',
        width: 400,
        height: 150,
        autoOpen: false,
        dialogClass: "mt"
    });
    
    
    
    function init_download(xml, checkList) {    
        
        var loopCounter = 0;
        var checkBoxValues = new Array();
    
        //find all the checked checkboxes
        $("input[@name=" + checkList + "]:checked").not('.chkall').each
        (
          function () {
              //fill the array with the values
              checkBoxValues[loopCounter] = $(this).val();          
              loopCounter += 1;
          }
        );
    
          // Before calling web service, set the loader
          // extjs
    
          Ext.MessageBox.show({
             title: 'Please wait',
             msg: 'Retrieving Data, please wait...',
             progressText: 'Retrieving...',
             width: 300,
             wait: true,
             waitConfig: { interval: 200 }          
          });
    
          // Need to change this namesapce base on yours
           FileDownLoadService.GetFiles(xml, checkBoxValues,OnComplete, OnTimeOut, OnError);      
           
          return false;
          
    }
    
    function OnComplete(arg) {
        file = arg;
        strFile = arg.split("/");
        
    }
    
    
    
    
    $(document).ready(function () {
        $("#dialog-message").append("<img src='images/loading.gif'  alt='Loading'/>");
    
    });   //end document.ready
    
    
    function prm_InitializeRequest(sender, args) {
    
        if (prm.get_isInAsyncPostBack()) {
            var options = {
                buttons: {},
                title: 'Still working on a previous request...'
            }
            $("#dialog-message").dialog("option", options);
            args.set_cancel(true);
        }
    
        else {
            if ($("#effectContent").length) {
                $("#effectContent").remove()
                $("#dialog-message").dialog("close");
            }
    
            var options = {
                buttons: {},
                title: 'Generating File...'
            }
            $("#dialog-message").dialog("option", options);
            $("#dialog-message img").show();
    
            var ret = $("#dialog-message").dialog("isOpen");
            if (ret != true) {
                $("#dialog-message").dialog("open");
                $("#dialog-message img").show();
            }
        }
    }
    
    function prm_EndRequest(sender, args) {
       // $("#effect img").remove();
        //$("#effect h3").text(" Click On File Name to DownLoad...")
       // $("#effect").append("<div id='effectContent'><a id='DownLoadLink' href='FileDownLoadHandler.ashx?file=" + file + "'>" + file + "</a></div>");
        //$("a").click(function () {        
       //     $("#effect").hide();
       // });
        $("#dialog-message img").hide();
        $("#dialog-message").append("<div id='effectContent'><a id='DownLoadLink' href='FileDownLoadHandler.ashx?file=" + file + "'>" + strFile[strFile.length - 1] + "</a></div>");
        $("#dialog-message").dialog("option", "buttons", { "Cancel": function () {
            
            var options = {
                buttons: {}
            }
            $("#dialog-message").dialog("option", options);
            $(this).dialog("close");
            } });
        $("#dialog-message").dialog("option", "title", 'Click File Name Below To DownLoad File');
        
        $('#DownLoadLink').click(function () {
        
            $("#dialog-message").dialog("close");
        });
    }
    Here is the site.master asp file

    Code:
    <%@ Master Language="VB" AutoEventWireup="false" CodeFile="Site.Master.vb" Inherits="Site" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
    <%@ Register TagPrefix="uc2" TagName="HeaderControl" Src="~/HeaderControl.ascx" %>
    
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head runat="server">
        <title>Welcome To Architect View</title>
        
        <!-- Styles -->
    
        <!-- Style for Main Architect View -->
        <link href="~/Styles/MainArchitectView.css" rel="stylesheet" type="text/css" />
    
        <!-- Theme used by Jquery UI elements -->
        <link type="text/css" href="~/Styles/jquery-ui-1.8.5.custom-blue/css/custom-theme/jquery-ui-1.8.5.custom.css" rel="stylesheet" />	
    
        <!-- Style used by Engineering Tools popup Windows-->
        <link href="Scripts/AeroWindow V3.5/css/AeroWindow.css?r=123" rel="stylesheet" type="text/css"/>
    
        <!-- Accordion Menus -->
        <link href="~/Styles/AccordionMenu.css" rel="Stylesheet" type="text/css" />
    
        <!-- File Download Dialog Style -->
        <link href="~/Styles/mt.dialog.css" rel="Stylesheet" type="text/css" />
    
        <!-- Style for thumbnail image Zooms -->
        <link type="text/css" href="fancybox/jquery.fancybox-1.3.1.css" rel="stylesheet" />	  
    
    
        <!-- Add png support for IE6 -->
    
        <!--[if lt IE 7 ]>
            <link href="~/Styles/IE6.css" rel="Stylesheet" type="text/css" />
        <![endif]-->
    
        <!-- End Styles -->        
     
        
        <!-- Scripts -->
     
        <!-- Jquery LIBS -->    
        <script  type="text/javascript" src="Scripts/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="Scripts/jquery-ui-1.8.2.custom.min.js"></script> 
        
        <!-- Main Site fucntionality -->
        <script type="text/javascript" src="Scripts/main_site.js"></script>
    
        <!-- Engineering tools section and dependencies -->    
        <script type="text/javascript" src="Scripts/AeroWindow V3.5/js/jquery-AeroWindow.js"></script>    
    
        <!-- thumbnail image Zooms -->
        <script type="text/javascript" src="fancybox/jquery.fancybox-1.3.1.js"></script>
         
        <!-- End Scripts -->    
        
        <asp:ContentPlaceHolder ID="HeadContent" runat="server">
    
        </asp:ContentPlaceHolder>
    
      
    </head>
    
    <body>
    
        <form runat="server" id="Form1">
        
          <asp:ScriptManager ID="ScriptManager1" runat="server">
          </asp:ScriptManager>    
    
        <div id="wrapper">
            <div id="wrapper2">
                  <div id="header">
                        <uc2:headercontrol id="HeaderControl1" runat="server"></uc2:headercontrol>
                  </div> <!-- End DIV header -->
          
            <div id="content">                
                <asp:ContentPlaceHolder ID="MainContent" runat="server">
                </asp:ContentPlaceHolder>
                    <div id="dialog-message" title="Generating File...">
                    </div>
                    <!-- Provides File Download dialog  logic -->
                <script type="text/javascript" src="Scripts/FileDownLoadUI.js"></script>
            </div> <!-- End DIV content -->
          
          <div id="nav">
              <asp:XmlDataSource ID="XmlDataSourceNavMenu" runat="server" DataFile="~/Xml/NavigationMenu.xml" XPath="MENU/ITEM">          
              </asp:XmlDataSource>
              <ul>
    
              <asp:Repeater ID="RepeaterNavMenu" runat="server" DataSourceID="XmlDataSourceNavMenu" >
              <ItemTemplate> 
           
              <li <%# CheckPage(XPATH("BREADCRUMB")) %>><a href="<%#XPATH("LINK") %>"><%# XPath("DISPLAY")%></a></li>
              </ItemTemplate>
              </asp:Repeater>
    
             </ul>
    
              <asp:XmlDataSource ID="XmlDataSourceNavMenu2" runat="server" DataFile="~/Xml/NavigationMenuGroup2.xml" XPath="MENU/ITEM">          
              </asp:XmlDataSource>
    
              <ul>
              
              <asp:Repeater ID="RepeaterNavMenu2" runat="server" DataSourceID="XmlDataSourceNavMenu2" >
              <ItemTemplate> 
           
              <li <%# CheckPage(XPATH("BREADCRUMB")) %>><a href="<%#XPATH("LINK") %>"><%# XPath("DISPLAY")%></a></li>
              </ItemTemplate>
              </asp:Repeater>
    
            </ul>
              <asp:LinkButton ID="BtnLogout" runat="server" Text="Logout" OnClick="BtnLogout_Click" CssClass="LinkButton" ClientIDMode="Static" >Log Out</asp:LinkButton>
              <script type="text/javascript">
                  $('a#BtnLogout').click(function () {
                      
                      $(this).text("Logging Out..");
    
    
                  });
              </script>
          </div><!-- End DIV nav -->
          <div id="footer">&copy; 2010       </div><!-- End DIV footer -->
          </div><!-- End DIV wrapper 2 -->
        <div id="btm"></div> <!-- End DIV btm -->
        </div><!-- End DIV wrapper -->
        </form>
    </body>
    </html>

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The Microsoft article on this tells you to upgrade to IE8.

    But it also shows you the problem further down in the "Information for developers" section. So if I were to blame anything, I'd blame the <script> element you have in a <div> there:

    HTML Code:
                    <!-- Provides File Download dialog  logic -->
                <script type="text/javascript" src="Scripts/FileDownLoadUI.js"></script>
            </div> <!-- End DIV content -->


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •