link on a cfchart

2008-10-29 Thread Julien fan
Hi,
I have several cfchart in my page and i would like, when a user clicks on a 
graph, another page open with the graph and the first page with all graph 
always always display.

This is my code: The graph on the new page is correct but the main page lose 
data and an error message appear : #object#.
An other problem with option url is : we can click only on the bar of the graph 
and no on all the graph...



cfchart 
  format=jpg
  backgroundColor=white
  xAxisTitle=#reportType#

  yAxisTitle=#kmType# hit counts 
  font=Arial
  gridlines=6
  showXGridlines=yes
  showYGridlines=yes
  showborder=yes
  chartwidth=680
  chartheight=200
  seriesPlacement=cluster 
url=javascript:window.location='chr(35)';window.open('kpi-history-export.cfm?');
 


If someone has an idea...

Thanks


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314515
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: link on a cfchart

2008-10-29 Thread Raymond Camden
Your JS for the link is very odd. Setting location to chr(35)? Is that
a trick of some kind? If your intent is to simply open a new window
with the same chart + extra stuff on the page, then your link should
include the chart name, or some other identifier. So if I had two
charts on the page, one for nukes, one for puppy dogs, I'd simply do
url=window.open('detail.cfm?chart=X') where X is hard coded to
signify which chart you want on the detail page.

On Wed, Oct 29, 2008 at 5:02 AM, Julien fan [EMAIL PROTECTED] wrote:
 Hi,
 I have several cfchart in my page and i would like, when a user clicks on a 
 graph, another page open with the graph and the first page with all graph 
 always always display.

 This is my code: The graph on the new page is correct but the main page lose 
 data and an error message appear : #object#.
 An other problem with option url is : we can click only on the bar of the 
 graph and no on all the graph...



 cfchart
  format=jpg
  backgroundColor=white
  xAxisTitle=#reportType#
   
yAxisTitle=#kmType# hit counts
  font=Arial
  gridlines=6
  showXGridlines=yes
  showYGridlines=yes
  showborder=yes
  chartwidth=680
  chartheight=200
  seriesPlacement=cluster
 url=javascript:window.location='chr(35)';window.open('kpi-history-export.cfm?');


 If someone has an idea...

 Thanks


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314516
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4