Sign in to follow this  
Lazarius

Logolink And Javascript

Recommended Posts

Hello.

Im trying to execute javascript by using logoLink property of MSLine Diagram:

 

<chart BaseFontSize="10" CaptionPadding="0" PYAxisName=""

ShowCaption="0" anchorAlpha="0" anchorRadius="5" bgColor="FFFFFF"

canvasBorderAlpha="80" canvasBorderColor="000000"

canvasPadding="10" canvasborderThickness="0" caption=""

chartBottomMargin="5" chartLeftMargin="20" chartRightMargin="20"

chartTopMargin="5" connectNullData="1" divLineAlpha="40"

formatNumberScale="0" labelPadding="10" labelStep="1"

lineThickness="1" plotGradientColor="" setAdaptiveYMax="1"

unescapeLinks="1"

logoURL="AHelp.gif" logoLink="JavaScript: alert('Alert!');"

setAdaptiveYMin="1" showBorder="0" showDivLineSecondaryValue="1"

showLabels="0" showLegend="1" showSecondaryLimits="0"

showShadow="1" showValues="0" showYAxisValues="0" showZeroPlane="1"

showplotBorder="1" subCaption="" thousandSeparator=""

xAxisNamePadding="0" yAxisName="{Y_AXISNAME}">

<categories>

<category label="31.08.09" />

<category label="01.09.09" />

<category label="02.09.09" />

<category label="03.09.09" />

<category label="04.09.09" />

<category label="07.09.09" />

<category label="08.09.09" />

<category label="09.09.09" />

<category label="10.09.09" />

<category label="11.09.09" />

<category label="14.09.09" />

<category label="15.09.09" />

<category label="16.09.09" />

<category label="17.09.09" />

<category label="18.09.09" />

<category label="21.09.09" />

<category label="22.09.09" />

<category label="23.09.09" />

<category label="24.09.09" />

<category label="25.09.09" />

<category label="28.09.09" />

</categories>

<dataset color="FF0000" parentYAxis="S" renderAs="Column"

seriesName="s1">

<set VALUE="0.001" color="00FF00" />

<set VALUE="0.001" color="00FF00" />

<set VALUE="0.001" color="00FF00" />

<set VALUE="0.001" color="00FF00" />

<set VALUE="0.001" color="00FF00" />

<set VALUE="0.001" color="00FF00" />

<set VALUE="0.001" color="00FF00" />

<set VALUE="0.001" color="00FF00" />

<set VALUE="0.001" color="00FF00" />

<set VALUE="0.001" color="00FF00" />

<set VALUE="0.001" color="00FF00" />

<set VALUE="0.002" color="00FF00" />

<set VALUE="0.002" color="00FF00" />

<set VALUE="0.003" color="00FF00" />

<set VALUE="0.003" color="00FF00" />

<set VALUE="0.003" color="00FF00" />

<set VALUE="0.004" color="00FF00" />

<set VALUE="0.004" color="00FF00" />

<set VALUE="0.004" color="00FF00" />

<set VALUE="0.004" color="00FF00" />

<set VALUE="0.004" color="00FF00" />

</dataset>

<dataset color="0000FF" lineThickness="2" parentYAxis="S"

renderAs="Line" seriesName="s2">

<set VALUE="0.001" />

<set VALUE="0.001" />

<set VALUE="0.001" />

<set VALUE="0.001" />

<set VALUE="0.001" />

<set VALUE="0.001" />

<set VALUE="0.001" />

<set VALUE="0.001" />

<set VALUE="0.001" />

<set VALUE="0.001" />

<set VALUE="0.001" />

<set VALUE="0.001" />

<set VALUE="0.002" />

<set VALUE="0.002" />

<set VALUE="0.002" />

<set VALUE="0.002" />

<set VALUE="0.003" />

<set VALUE="0.003" />

<set VALUE="0.003" />

<set VALUE="0.003" />

<set VALUE="0.003" />

</dataset>

<styles>

<definition>

<style name="CaptionFont" size="12" type="font" />

</definition>

<application>

<apply styles="CaptionFont" toObject="CAPTION" />

</application>

</styles>

<trendLines>

<line color="FF0000" parentYAxis="S" />

</trendLines>

</chart>

 

But this don't work, script not execute, why?

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum! smile.gif

 

Could you please enable the Flash Player Global Security settings, if you are running the application from local file system (C:\ or D:\) and not from web server (local or live)?

 

Flash Player's Global Security setting blocks invoking/calling JavaScript from SWF (Flash Movie) by default. So you need to reset your setting into Global Security Setting panel and enable it.

 

Please refer to the following page for further details on the Flash Player Global Security settings:

 

http://www.fusioncha...HowToSetup.html

 

In case you are using Flash player 10.3, please refer to the forum link: http://forum.fusionc...h__1#entry39164

 

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this