HI,
I am using jsgraph to draw some graphs. I want to be able to update
these graphs by calling a javascript function to update data.
I have a div to display the graph that looks like this:
<div id = 'div1'>
<script language="JavaS cript">
<!--
graph3.makeGrap h();
//-->
</script>
</div>
What I would like to do is from another javascript function
document.getEle mentById('div1' ).innerHTML = graph3.makeGrap h();
but this does not work. Is there a way to output a javascript object
to a div?
Thanks.
Kevin
I am using jsgraph to draw some graphs. I want to be able to update
these graphs by calling a javascript function to update data.
I have a div to display the graph that looks like this:
<div id = 'div1'>
<script language="JavaS cript">
<!--
graph3.makeGrap h();
//-->
</script>
</div>
What I would like to do is from another javascript function
document.getEle mentById('div1' ).innerHTML = graph3.makeGrap h();
but this does not work. Is there a way to output a javascript object
to a div?
Thanks.
Kevin
Comment