I currently have a page setup like this:
PHP Variable Declarations
HTML header, then a form to submit GET query
The PHP that processes some stuff based on the GET data
a bit of JavaScript that makes a pretty graph from the retrieved, processed data
What I want to do is have only the form show up when the page is first loaded, and then when the query is entered, have the graph appear at the bottom of the page. It's using the flot library, and the JS currently looks like this:
<script id="source" language="javascript" type="text/javascript">
$.plot($("#test"), [ [[0, 0], [1, 1]] ], { yaxis: { max: 1 } });
</script>
Do I need to replace the $.plot with some event handler or something? I'm a total JS neophyte!
Thanks!