Hello fellows!
I have question.
Iam doing some project to my school and I have small problem.
I have chart (iam using jfreechart) in Chart.java file and after user is loading to his profe he should be able to push button and chart wit his statistics should appear. My problem is that I cant form proper onClick function. or mayby
Code:
window.parent.location.href
is wrong used?
here is code of website when user logged in and he can click on chart button
Code:
<%@ page contentType="text/html; charset=iso-8859-1" language="java"%>
<%@ page import ="java.sql.*" %>
<%@ page import ="javax.sql.*" %>
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../WEB-INF/lib/amcharts.js" type="text/javascript"></script>
<title>Successfully Login by JSP</title>
</head>
<body>
<input type=button onClick="parent.location='logOut.jsp'" value='Wyloguj'>
<br>
Zalogowano pomyslnie<br />
Twoje dane :<br />
<%
out.print("Nazwa uzytkownika :<b>"+session.getAttribute("sUserID")+ "</b>"+"<br>");
out.print("Imie i Nazwisko :<b>"+session.getAttribute("sUserName")+"</b>"+"<br>");
out.print("E-mail :<b>"+session.getAttribute("sEmail")+"</b>");
%>
<form action="nowe_dane.jsp" method="post">
<input type="text" name="wynik_badania" /> Poziom cukru z dnia:
<script language="javascript">
<!--
today = new Date();
document.write(" ", today.getDate(),"/",today.getMonth()+1,"/",today.getYear());
//-->
</script> <br>
<input type="submit" />
<input type=button onClick="window.parent.location.href = 'src/java/demo/Chart.java' " value='Wykres'>
</body>
</html>