ajax - Calling multiple Jquery plot using tab -
i have 2 jquery plot real-time graphs, once first loaded, if click on "graph 2" tab, second graph called but, not being loaded in div first graph loaded. help?
jquery
<script> var page = baseurl+'/ajaxcall.php'; function get_data(vara,div) { $(div).css("display","block"); $.post(page, { posta : vara }, function(data) { $(div).html(data); },'text'); } </script>
html
<div class="toolbar"> <a href="javascript:void(0)" onclick="get_data('callgraph1','#divid')">graph 1</a> <a href="javascript:void(0)" onclick="get_data('callgraph2','#divid')">graph 2</a> </div> <div id="divid"></div>
Comments
Post a Comment