Hi ASM,
jfreechart (
http://www.jfree.org/jfreechart) is not a tool, its an
opensource java library (not an editor) to generate chart images
dynamically based on some data. it supports drill down of charts using
image maps so based on where you clicked on the chart, you can further
drill down the chart with selected info.
now it takes URL as the parameter and it automatically appends the
parameters based on the image map.
for ex if you have a yearly bar chart to show sales in 12 months, and
when the user clicks on one particular month, the selected month will
be appended to the URL prefix (which i provide).
now here i can only pass string URL prefix. but i can pass URL
something like
"javascript
:window.open('http://localhost:8080/myServlet');"
this will hit the given URL and append the selected month as parameter
now i wanted to know if is there any statement (return false din work)
which can stop refreshing the background page?
event.cancelBubble = true din work as well.
thanks & regards
amey
On Mar 1, 8:18 pm, ASM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
ameyas a écrit :
thanks evertjan
it ain that straightforward. i am acutally using jfreechart (java
library)
where can we see this curiosity (in action) ?
to generate chart images. i need to pass string as argument
which is used as prefix in generating maps for that chart.
so i wanted to know if is there any way where by i can cancel the
refreshing.
i do not have a href anywhere.
you have certainly one href (and more) !
if not, why to create a map ?
its all handled internally by jfreechart to generate map. all i can do
is pass some javascript statement within the string.
What is this tool that can do almost nothing ?
Of course you have no NotePad or similar ?
hope i made myself clear :)
Hope you can code at home with your NotePad to correct what your java
tool can't make.
Any way Evertjan has given you what to type :
<a
href="javascript:window.open('http://www.google.com');returnfalse;"
with your java tool when it asks url :
javascript:window.open('http://www.google.com');returnfalse;
the real url is between '
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date