Infragistics Home

Infragistics Forums

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

IE bug with chart Control in Div: information

Last post 10-22-2008 6:21 by uli. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 06-11-2008 17:40

    • Patrick
    • Top 50 Contributor
    • Joined on 12-06-2007
    • Albuquerque, NM
    • Points 2,081

    IE bug with chart Control in Div: information

     

    I just wanted to give everyone a heads up on a problem that took me a while to track down.

     After upgrading a project with a chart control from 7.2 b 1069 to the latest hotfix for 7.2 I started getting an error in IE which seemed to be sporadic and even random at times. 

    Internet Explorer cannot open the internet site http://thesite/ Operation aborted

    I found this Microsoft KB article on the problem:

    http://support.microsoft.com/default.aspx/kb/927917

    Finally, I discovered that it was the chart control that was generating the error.  In my application the chart control is contained within a Div tag.

    If the user generates a post back and the mouse is left on the screen where the chart is going to render the error is thrown.  My guess is that the tool tip used by the chart control is something like a dynamic div tag that positions itself relative the location of the mouse cursor.  According to the KB article it appears that the chart control is trying to create that tag in the parent div tag which has yet to finish rendering on the screen... resulting in the error.

    This was a very frustrating problem to track down and I hope this post helps someone else save time and a headache. 

    I have submitted an IR to Infragistics with the following ID: WBC4883

    Hope it helps,

    Patrick

     

    Update 1:

    Turned tooltips to mouse click and still have the problem.

    Turned off tooltips and still have the problem.

     

    • Post Points: 20
  • 06-18-2008 17:37 In reply to

    Re: IE bug with chart Control in Div: information

    this was submitted as a bug (BR33878) and we were able to fix it in the control's javascript code.  it should be resolved in a future hotfix.

    • Post Points: 20
  • 06-18-2008 17:48 In reply to

    • Patrick
    • Top 50 Contributor
    • Joined on 12-06-2007
    • Albuquerque, NM
    • Points 2,081

    Re: IE bug with chart Control in Div: information

    Sorry, forgot to update the post after I got the BR ID back from dev support.

    Patrick

    • Post Points: 5
  • 06-27-2008 10:34 In reply to

    Re: IE bug with chart Control in Div: information

    Answer

     this fix is forthcoming, but here's a workaround in case you need one.  just hide the chart in a div, and use javascript to show the div when the body is done loading.  this prevents the mouse interaction code from throwing this error before the page is ready.

     <html>

    <head>

    <script type="text/javascript">

    function body_onload()

    {

     document.getElementById("theDiv").style.display = "";

    }

    </script>

    </head>

     <body onload="body_onload();">

    <form>

    <div id="theDiv" style="display:none"><igchart:UltraChart /> <div>

    </form>

    </body>

    </html>

    • Post Points: 20
  • 06-27-2008 11:10 In reply to

    • Patrick
    • Top 50 Contributor
    • Joined on 12-06-2007
    • Albuquerque, NM
    • Points 2,081

    Re: IE bug with chart Control in Div: information

    David,

    Thank you for taking the time to find a work around. 

    Patrick

    Update:

    Implemented, tested, and working well.

    • Post Points: 20
  • 08-20-2008 11:05 In reply to

    • vgk
    • Not Ranked
    • Joined on 05-08-2008
    • Points 20

    Re: IE bug with chart Control in Div: information

    The Body onload event did not work for me.  The div tag's display style was not changing.  Read some documentation that Body onload may not be that reliable...? Any thoughts. 

    Instead what seems to work well is to call the function (to make div visible) at the end of the page, after the close body tag and before the close html tag

    P.S. Thanks for the post and pointing us in the right direction.

    Regards

    Bill

    • Post Points: 20
  • 08-27-2008 16:46 In reply to

    Re: IE bug with chart Control in Div: information

     this is fixed in the following versions:

    7.2.20072.1080 CLR 2.0, 7.3.20073.1054 CLR 2.0, 8.1.20081.2049 CLR 2.0, 8.1.20081.2049 CLR 3.5, 8.2.20082.2013 CLR 2.0, 8.2.20082.2013 CLR 3.5 

    which means the next available hotfix should resolve this issue.

    i've never had any problems with the body.onload event, but it's HTML, so nothing is certain :) ...your workaround of placing the script outside the body tag sounds good to me.

    • Post Points: 20
  • 10-22-2008 6:21 In reply to

    • uli
    • Not Ranked
    • Joined on 02-12-2008
    • Points 75

    Re: IE bug with chart Control in Div: information

    Thank you Patrick for sharing your problem here in the forum! I had the same issue and was searching for weeks. (Not easy to find the cause for this error.)

    Uli

    • Post Points: 5
Page 1 of 1 (8 items)
Powered by Community Server (Commercial Edition), by Telligent Systems