Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Internet Explorer 7 throws "Operation Aborted" error when AJAX Control Toolkit control initializes before the grid

Last post 08-05-2008 15:17 by [Infragistics] Rumen Stankov. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 06-25-2008 12:10

    • Oscar Mora
    • Top 150 Contributor
    • Joined on 06-09-2008
    • California, USA
    • Points 543

    Internet Explorer 7 throws "Operation Aborted" error when AJAX Control Toolkit control initializes before the grid

    Hello,

    I'm developing a page using Microsoft's AJAX Control Toolkit version 3.0.20229.14869 and the UltraWebGrid v8.2. The page has an AutoCompleteExtender (from the AJAX Control Toolkit) at the top and a grid at the bottom.

    When the page is rendered in IE7 I can see the java script initialization code corresponding to each control at the bottom of the page, right before the closing </form> tag. The code looks somewhat like this:

    <script type="text/javascript">
    //<![CDATA[
    Sys.Application.initialize();
    Sys.Application.add_init(function() {
        $create(AjaxControlToolkit.AutoCompleteBehavior, /*Initialization code for the autocompleteextender here*/);
    });
    //]]>
    </script>
    <script type='text/javascript'><!--
     var octl00xPageContentxItemViewEx1xUltraWebGrid1 = igtbl_initGrid(/*Initialization code for the webgrid here*/);
    //--></script>

    If I run the page from Visual Studio 2008 everything runs fine. The page loads fine, I can sort and browse through the grid with no problems.

    Then I uploaded the page to our IIS 6.0 server and I requested the page from IE 7 on my dev machine. Both the server and my pc are on the same LAN. Every now and then when the grid is displayed and I click a new page or I refresh the page (or anything that triggers a postback) I get this error:

    Internet Explorer cannot open the internet site http://myserver.mysamplesite.aspx Operation Aborted.

    Now, if I request the page from a machine located on a remote location (outside the LAN) I get the error more frequently, about 70% of the times. I'm making this note because that's the easiest way to reproduce the error.

    After some trial and error, I noticed the page worked fine when the AutocompleteExtender was disabled. Under that scenario the line:

    Sys.Application.add_init(function() {
        $create(AjaxControlToolkit.AutoCompleteBehavior, /*Initialization code for the autocompleteextender here*/);

     

    is not present and the grid can trigger postbacks without any problem.

    The next test was swaping the order of the controls, I mean, the grid was placed at the top of the page and the AutoCompleteExtender was placed at the bottom. this time the code looks like this:

    </script>
    <script type='text/javascript'><!--
     var octl00xPageContentxItemViewEx1xUltraWebGrid1 = igtbl_initGrid(/*Initialization code for the webgrid here*/);
    //--></script>
    <script type="text/javascript">
    //<![CDATA[
    Sys.Application.initialize();
    Sys.Application.add_init(function() {
        $create(AjaxControlToolkit.AutoCompleteBehavior, /*Initialization code for the autocompleteextender here*/);
    });
    //]]>

    Which is the expected behavior since the grid is rendered first. Under this scenario everything works fine too.

    The conclusion is that the grid initialization code fails on IE 7 if the AutoCompleteExtender is initialized before the grid.

    Has anyone seen this kind of error?

    That's the only issue keeping us from including Infragistics UltraWebGrid on our projects. Any light you can shed on this matter is greatly appreciated.

    Thanks.

    Filed under:
    • Post Points: 50
  • 06-26-2008 16:15 In reply to

    Re: Internet Explorer 7 throws "Operation Aborted" error when AJAX Control Toolkit control initializes before the grid

     I would report this directly to Developer Support:

     

    http://www.infragistics.com/gethelp

    Darrell Kress
    Research and Development
    Infragistics

    Please remember that while Infragistics does monitor the forums, they remain a Peer to Peer support option. You can always contact Infragistics support directly via one of the options listed at http://www.infragistics.com/gethelp.


    Have a feature you would like to see? Or possibly a new component you would want in NetAdvantage? Submit a feature request to Infragistics through our Developer Support department.
    • Post Points: 5
  • 06-27-2008 10:49 In reply to

    • mrian
    • Not Ranked
    • Joined on 02-15-2008
    • Points 60

    Re: Internet Explorer 7 throws "Operation Aborted" error when AJAX Control Toolkit control initializes before the grid

    Have you had any response to this issue? I am getting the same thing.

    Thanks

    • Post Points: 20
  • 07-03-2008 9:09 In reply to

    Re: Internet Explorer 7 throws "Operation Aborted" error when AJAX Control Toolkit control initializes before the grid

    "Operation Aborted" in IE browsers generally occurs if anyone tries to change the DOM object model while the page is stll loading (document.readyState != ready).

    I would guess that with grid and autocomplete extender something happens (e.g. the autocomplete extender tries to alter the page in order to proceed with its functionality) and with grids on the page, it takes a while to load and the autocomplete extenders modifies the page prior to completion.

    Is it possible to move the AutoComplete extender client-side initialization code in age client side page_load event or somehow delay the initialization?

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 20
  • 07-08-2008 11:11 In reply to

    • Oscar Mora
    • Top 150 Contributor
    • Joined on 06-09-2008
    • California, USA
    • Points 543

    Re: Internet Explorer 7 throws "Operation Aborted" error when AJAX Control Toolkit control initializes before the grid

    I don't think there's a way to move the initialization code for the extender. In my case the extender is rendered before the grid. That's why its initialization code is placed before the grid's.

     I already sent this issue to support, including a test project to easily reproduce the error. I'll keep you guys posted.

    Thanks.

    • Post Points: 5
  • 07-28-2008 22:48 In reply to

    Re: Internet Explorer 7 throws "Operation Aborted" error when AJAX Control Toolkit control initializes before the grid

     Hi,i got the same error.

    Do you got the answer?Could you send e-mail to tinyoyster@gmail.com?Thank you very much

    Vexedly waiting....... 

    Filed under: ,
    • Post Points: 20
  • 08-04-2008 19:19 In reply to

    • ghamidi
    • Not Ranked
    • Joined on 08-04-2008
    • Points 40

    Re: Internet Explorer 7 throws "Operation Aborted" error when AJAX Control Toolkit control initializes before the grid

    Hi,

    I am having the same exact issue? In my case, I am using IE 6.0.

    One thing I realized is if I deleted the cookies, then at the next login the grid will work once. I will then get this error even if I logout and log back in as a different user. 

    Please post here if you find a solution.

     

    thanks 

    ghalib

    • Post Points: 20
  • 08-04-2008 20:44 In reply to

    Re: Internet Explorer 7 throws "Operation Aborted" error when AJAX Control Toolkit control initializes before the grid

    I am sorry,I have no soluation now.
    I have no idea,i will crazy.
    Please let the others know the solution if someone can fix the issue.
    IF i resolved the issue,i will write here or send email to everybody who asked me before.
    Many friends send email to me about the issue,they have the same error.

    thanks

    tinyoyster
    • Post Points: 20
  • 08-05-2008 0:22 In reply to

    Re: Internet Explorer 7 throws "Operation Aborted" error when AJAX Control Toolkit control initializes before the grid

    Hello Guys,

    We really want to help you with this one, but unfortunately this is something beyond what we can do. I investigated the problem last night and here is what I found - AJAX AutoComplete Extender tries to modify the DOM of the page without checking if it is loaded (document.readyState) and does this in a way that intermittently will display the error.

    Moreover, this seems like a general issue with the control itself (Autocomplete Extender), since you can see in this forum thread:

    http://forums.asp.net/p/1283812/2461102.aspx

    that the same problem is being reported, without any IG prodcuts. There is a statement from the Microsoft Community Support Officer there, but I believe the fastest way to have this addressed is to report it to the community forums of Ajax Control ToolKit or log it as a bug.

    Alternatively, you can use our own WebCombo component, which support AJAX AutoComplete modes:

    http://samples.infragistics.com/2008.2/webfeaturebrowser/default.htm

    (select AJAX -> WebCombo fromo the left navigation pane and check out all 5 typeahead AJAX samples) 

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 20
  • 08-05-2008 14:21 In reply to

    • ghamidi
    • Not Ranked
    • Joined on 08-04-2008
    • Points 40

    Re: Internet Explorer 7 throws "Operation Aborted" error when AJAX Control Toolkit control initializes before the grid

    Hi Rumen,I believe that this issue is related to IG WebGrid. I have the Ajax autocomple in all of my pages and never seen this issue pop-up.  I even have it in combination with soem IG controls.Further, the link you provided on the previous post relates to core HTML, where an script is run before closing the parent tag. This will generate an error regardless.Can you please take a close look at this and if possible, please escalate?. It is not possible for me to use IG products in every page of mine. Here are some observations:1. This happens in my production server and not in my Development server. 2. At the first access to this page, I don't get this error. Any subsequent access will produce this error.3. If I delete the cookies using IE tool menu, then apparently everything resets and I can access this page only once. Does IG WebGrid use any cookies? Would this be in conflict with the Ajax control? ThanksGhalib 
    • Post Points: 20
  • 08-05-2008 15:17 In reply to

    Re: Internet Explorer 7 throws "Operation Aborted" error when AJAX Control Toolkit control initializes before the grid

    Hello,

    I am the last person to try blaming browsers and third party controls for problems, it is just that this was the result of my research of this issue - I believe that it is related to AJAX Autocomplete Extender trying to modify the DOM too early in the page load cycle. But then again, I might be wrong.

    If you want to have this escalated, I believe the best way to proceed in these situations is to contact Developer Support directly. They can be reached at:

    http://www.infragistics.com/gethelp/default.aspx

    This way, you will either get a workaround/solution/hotfix, or this will be logged as a bug in our bug track system and assigned a number and you will be able to monitor any status change for this bug from this point on.

     

     

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 5
Page 1 of 1 (11 items)
Powered by Community Server (Commercial Edition), by Telligent Systems