XML : Getting same xml file even after updating it and refreshing the page

1.data.xml is loaded for the first time

2.updated the content of data.xml and even after page refreshing its content not updated

  <script type="text/javascript">                                       $(document).ready(function(){                                             $.ajax({                              type: "GET",                                                              datatype: "xml",                              cache: false,                              error: function(jqXHR, textStatus, errorThrown) {                                  console.log('Error fetching xml : ' + errorThrown);                              },                              success: function(xml) {                                  var myChart = new JSChart('graph', 'bar');                                  myChart.setDataXML('data.xml');                                  myChart.setAxisNameX('Number of Days');                                  myChart.setAxisNameY('Number of Requests');                                  myChart.setAxisPaddingLeft(50);                                  myChart.setAxisNameColor('#655D5D');                                  myChart.setAxisNameFontSize(9);                                  /* myChart.setAxisValuesDecimals(1); */                                  myChart.setAxisValuesColor('#9C1919');                                  myChart.setTitle('Request Count Status');                                   myChart.setTitleColor('#333');                                  myChart.setBarSpacingRatio(80);                                  /* myChart.setTitleColor('#B6C2D0'); */                                  /*  myChart.setGridColor('#5D5F5D'); */                                                                       myChart.draw();                              }                          });                                    });                                      </script>           

No comments:

Post a Comment