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
language=javascript" and document.write have both been obsolete for many years. The <!-- --> around the script is there to hide it from Internet Explorer 2.
Also input tags are required to be inside forms.
None of that would be preventing the new .java page loading when someone clicks on the button though.
The problem is probably on the server in connection with how you have it set to serve .jsp and .java pages.
For tests Iam using chrome,
When Iam putting for example reg.html or newhtml.html into this onClick form it works perfect, iam just having troubles with Chart.java . Also if I "Run" Chart.java window applet is showing up - so if its stands alone it works too!.
Iam just having problem with connecting them... ;x
Quote:
The problem is probably on the server in connection with how you have it set to serve .jsp and .java pages.
I don’t know where to move that thread. To JS or Java? In any case, this seems to have nothing to do with HTML or CSS.
The JavaScript is irrelevant - all it is doing is calling for a new Java page to load - so this question is more likely to be a problem with the Java code that hasn't been supplied.
why are there hard coded values in there?! I am assuming this is an prebuilt skeleton that is an example- you most likely have to change values around to get it to work. Also this now dives into other classes. Wherever you got that library from they should have tutorials on how to use it.