钻取功能 - 调用在 fusioncharts 中不起作用的 js 函数

发布于 2024-12-17 06:25:17 字数 1493 浏览 5 评论 0原文

我正在调用一个 javascript 函数来深入分析图表。 我尝试使用指定的两种方法:

1)

2) <设置标签='S。 Korea' value='86' link="JavaScript:myJS('empid');"/>

第一次尝试给出错误,资源 - /myapp/mychart/j-myJS-empid 不可用。 第二个只是不显示图表,表示 XML 数据无效。

我正在使用 grails-groovy (基于 java)来开发我的应用程序。 我正在使用 dataXML 方法生成这样的图表,这

<OBJECT style="z-index: -100" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" align="center" name="Column3D" width="440" height="350"
 codebase="http:/download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="Column3D">
 <param name="movie" value="/gra/swf/FCF_Column3D.swf" />
 <param name="FlashVars" value="&dataXML=${dataXML}" />
 <param name="quality" value="high" />
  <param name="wmode" value="transparent" />
 <param name="alpha" value="20" />
 <param name="blendMode" value="BlendMode.ALPHA" />

      <embed src="/gra/swf/FCF_Column3D.swf" style="text-align: center" flashVars="&dataXML=${dataXML}"
       quality="high" width="440" height="350" name="Column3D" type="application/x-shockwave-flash"
       pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>

是仅通过 dataURL 方法支持的 javascript 函数 cal,如果是,我需要知道是否有其他方法可以使用 dataXML 方法调用 js 函数,因为我有很多图表页面,将所有数据写入 XML 文件是不可行的。 我还想知道链接属性中指定的 URL 长度是否有限制 PS 我已经在我使用 dataURL 方法的另一个图表中成功调用了 JS 调用。 请紧急需要他。 提前致谢 普里扬克

I am invoking a javascript function for drilling down the chart.
I tried using both methods specified:

1) <set label='USA' value='235' link="j-myJS-empid"/>.

2) <set label='S. Korea' value='86' link="JavaScript:myJS('empid');"/>

the first try gives me error that the resource - /myapp/mychart/j-myJS-empid is unavailable.
The second one just doesnot display the chart , says invalid XML data.

I am using grails-groovy (java based) to develop my application.
I am using the dataXML method to generate the charts like this

<OBJECT style="z-index: -100" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" align="center" name="Column3D" width="440" height="350"
 codebase="http:/download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="Column3D">
 <param name="movie" value="/gra/swf/FCF_Column3D.swf" />
 <param name="FlashVars" value="&dataXML=${dataXML}" />
 <param name="quality" value="high" />
  <param name="wmode" value="transparent" />
 <param name="alpha" value="20" />
 <param name="blendMode" value="BlendMode.ALPHA" />

      <embed src="/gra/swf/FCF_Column3D.swf" style="text-align: center" flashVars="&dataXML=${dataXML}"
       quality="high" width="440" height="350" name="Column3D" type="application/x-shockwave-flash"
       pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>

IS the javascript function cal supported only through dataURL method, if yes, I need to know if there is any other way to call a js function using dataXML method since I have many charts on the page and it wont be feasible to write the data to XML file for all.
Also I wanted to know if there is a limit on the length of the URL specified in the link attribute
P.S. I have succesfully invoked the JS call in my other chart where I use the dataURL method.
Please hel is needed urgently.
Thanks in advance
Priyank

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吃不饱 2024-12-24 06:25:17

j-链接格式在 FusionCharts FREE 中不起作用。

为此,您需要使用 FusionCharts v3 ( http://www.fusioncharts.com/ )

JavaScript 函数调用通过 DataXML 和 DataURL 方法支持。

希望您可能已经经历过这个:

http://www.fusioncharts。 com/free/docs/Contents/DrillDown/JavaScript.html

如果您使用 DataXML 方法,则链接中的引号需要进行 URLEncoded:

尝试:

link='JavaScript:myJS(%26quot;empid%26quot;);'

link='JavaScript:myJS(%26apos;empid%26quot;);'

j- link format does not work in FusionCharts FREE.

For this you would need to use FusionCharts v3 ( http://www.fusioncharts.com/ )

JavaScript function call is supported through both DataXML and DataURL method.

Hope you might have already gone through this :

http://www.fusioncharts.com/free/docs/Contents/DrillDown/JavaScript.html

In case you are using DataXML method, your the quotes in your link needs to be URLEncoded:

Try:

link='JavaScript:myJS(%26quot;empid%26quot;);'

or

link='JavaScript:myJS(%26apos;empid%26apos;);'

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文