Highcharts IE issues with jQuery ajax load -


i'm trying display x number of different highchart graphs in single page. each chart has it's own .js option file get's data , configurated. link these files embedded in charts own html file contains div rendered to.

each of these charts html files upon request loaded div id of "reportswindow" through jquery (see code below)

html pages layout:

<script type="text/javascript" src="/graf/revenue/revenuegraphscript.js"></script> <div class="clear">     <div id="revenue" style="width: 600px; height: 200px;"></div> </div> 

jquery code loading html pages:

var graphpaths = {     'revchart': '/graf/revenue/revenuechart.html',     'revdischart': '/graf/revenuedistribution/revenuedistributionchart.html' }  $.each(graphpaths, function(index, value){       $.ajax({url: value, datatype: "html", success: function(data){         $('#reportswindow').append(data);     }});           });  

the problem when code runs in ie (all versions) first chart not loaded correctly, if loading , appending stopped midways, if request load of reports page second time both charts displayed. charts loads in ff, chrome etc.

i have far tried delay $.each() both .delay() before append , have tried have ajax call inside "settimeout()" without success.

obs: graphpaths populated on later date db input, , reason why have generate charts dynamically. charts objects have unique names. , charts generation code inside $(document).ready().

i'm looking this: create 6 chart same rendering,different data (highchart ) using different charts example same chart.

any suggestions?

apparently there issue ie when having multiple charts on 1 page loaded dynamically. problem solved removing following code library

// setup default css         doc.createstylesheet().csstext =             'hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke' +             '{ behavior:url(#default#vml); display: inline-block; } '; 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -