IE / window.onload & AJAX

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Kevin Morwood on 11th October 2013
I have made great strides with getting everything working exactly as I want with RGraph...with one notable exception.

All of my charts are getting data populated using Ajax. I create the canvas in the HTML and then in the ajax return I create/reset the chart object and fill in the data. It works VERY well.

In IE 8 the data has not been fetched yet when the window.onload call fires. That's probably half the problem. Does this model ever work in IE 8 or am I on the wrong track?

I have refactored and tweaked and twisted the code in all the ways I can think of but I cannot get even the base chart to work properly in IE 8 with excanvas.

Any help/hints you can provide will be greatly appreciated.

Kind regards,
Kevin
Posted by RGraph support on 11th October 2013
Hi there,


Well you can look at this page to try and get tips to get AJAX working with IE7/IE8:

www.rgraph.net/docs/basic-ajax-dynamic-updates.html

To see it in IE8/IE7 you just need to add ExCanvas. Keep in mind though because IE8/IE7 are so slow, especially in conjunction with ExCanvas, it will be visibly slow and you will also see buggy behaviour most likely.

Richard, RGraph Support
Please remember to link to the RGraph website

Help support RGraph - single site license only £99
    www.rgraph.net/license#single-site
Posted by Kevin Morwood on 11th October 2013
Ok...so I see how the update works. Thanks!

I got a basic line chart working now. Now to port this new knowledge back to the app.

Thanks so much!

Kevin

Add a reply




« Back to message list