Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 492
  • Last Modified:

<CFCHART

How do i open link in new window such as target="_blank"
<cfchart format="flash" chartheight="85" chartwidth="400" xaxistitle="Year" yaxistitle="Total in Million" style="#chartstyle#" showlegend="no" url="chart_drill.cfm?MERCHANT_NAME=#merchant_name_eng#&year=$ITEMLABEL$&merchant_id=#merchant_id#">
      <cfchartseries  type="#chart_type#"
		query="get_usage_chart" 
		itemcolumn="year" 
		valuecolumn="total"/>
    </cfchart>

Open in new window

0
faisalmohi
Asked:
faisalmohi
1 Solution
 
_agx_Commented:
I don't think cfchart has a target attribute. But you could use a javascript function to target a new window.  



<script>
	function showPage(pageURL)
	{
		window.open(pageURL, "NewWindow"); 
	}	
</script>
<cfchart format="flash" chartheight="85" chartwidth="400" xaxistitle="Year" yaxistitle="Total in Million" style="#chartstyle#" showlegend="no" url="javascript:showPage('chart_drill.cfm?MERCHANT_NAME=#merchant_name_eng#&year=$ITEMLABEL$&merchant_id=#merchant_id#');">
      <cfchartseries  type="#chart_type#"
                query="get_usage_chart" 
                itemcolumn="year" 
                valuecolumn="total"/>
</cfchart>

Open in new window

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now