Ajax problem: jQuery Mobile with jqplot
Hi, I've been seeing a problem when using jQuery mobile with jqplot when ajax enabled.
I followed the basic instruction for jqplot, i.e., add a div and a simple javascript to make a chart:
- <div id="chartdiv" style="height:400px;width:300px;"></div>
- <script type="text/javascript">
- $(document).ready(function() {
- $.jqplot('chartdiv', [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]]);
- })
- </script>
when I disable the ajax, the chart will show up but if I enable the ajax, the chart won't show up. Is there something I can do to have jqplot work with jQuery Mobile when ajax enabled?
Thanks!