I want to generate graph using the values of the database dynamically . I have developed this code but it's still not working......help us ASAP.The two javascript files that are used as a source are downloadable from www.dynamicdrive.com & write graphs in search tab.
<html>
<head>
<title>Graph</title>
<script type="text/javascript" src="C:\Documents and Settings\HP_Owner\Desktop\site2\line.js"></script>
<script type="text/javascript" src="C:\Documents and Settings\HP_Owner\Desktop\site2\wz_jsgraphics.js"></script>
<script type="text/javascript">
function drw()
{
var g = new line_graph();
g.add(rs.getString(2),rs.getString(1));
g.add("12",70);
What does "not working" mean - does the computer blow up?
malhar deshpande
Greenhorn
Joined: Nov 12, 2011
Posts: 5
posted
0
It means that after clicking the button graph is not displayed on the screen.
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
Some questions in no particular order (all of which you'll need to be able to answer in order to figure this out): What's the output you're getting in your browser's console? What's the output you're getting in your servlet container's log file? What is the HTML that's getting generated - is it correct, and as you imagined it would be? Is the function "drw" being called?