Issue with calling a javascript in Chart property 'clickURL'
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


««12

Issue with calling a javascript in Chart... Expand / Collapse
Author
Message
Posted 8/19/2008 10:08:39 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Today @ 4:44:15 AM
Posts: 18, Visits: 60
Hi,
Could you let me know why is the issue occuring?
Thanks,
Olives.
Post #8029
Posted 8/21/2008 1:22:01 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 4:19:22 AM
Posts: 885, Visits: 1,422
Hi,

I apologize for the typo:

clickURL='%26lt;portlet%3Anamespace%2F%26gt;TestMethod();'

Please modify it to :

clickURL='Java Script: %26lt;portlet%3Anamespace%2F%26gt;TestMethod();'

Note : to remove the space between Java and Script.  This forum sometimes omits the word 'javascript'. Hence, i have kept a space.


Please also make sure that you are able to call this javascript from a simple form button etc.

<portlet:namespace/>TestMethod();


Regards,

Sudipto Choudhury
FusionCharts Team
Post #8073
Posted 8/22/2008 6:55:37 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Today @ 4:44:15 AM
Posts: 18, Visits: 60
Hi,
thanks so much for the code snippet.

clickURL='JavaScript: %26lt;portlet%3Anamespace%2F%26gt;TestMethod();'>

This helped to go further.
The xml generated by the chart debugger is coming correctly.

But on click of the chart ,the javascript does not get invoked.,this i suppose is an issue with the flash and macintosh.
I am using the intel mac(quad-Core Intel Xeon).

One of the forum posts mentioned that :
It occurs if you are running your HTML locally. By default Flash Player's security setting blocks invoking/calling JavaScript from SWF (Flash Movie), so you need to reset your setting into Global Security Setting panel.
Ref:http://www.fusioncharts.com/forum/Topic5009-47-1.aspx?Highlight=javascript+in+xml

Probably need to find how this can be fixed on my mac.

Is there mac version for including pluginspage='http://www.macromedia.com/go/getflashplayer' in the Fusion.jsp?


Thanks anyways!
Olives







  Post Attachments 
chartDebugger.xml (1 view, 225 bytes)
Post #8105
Posted 8/24/2008 11:36:46 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Today @ 4:44:15 AM
Posts: 18, Visits: 60
Hi,
Could you tell me where i could look for help regarding this issue.The chart debugger gets the right js format but the the alert does not come up.
Thanks,
olives
Post #8128
Posted 8/25/2008 1:07:29 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 4:19:22 AM
Posts: 885, Visits: 1,422
Hi,

Could you please try running from a Web Server? I suppse your mac has Apache configured.

Regards,

Sudipto Choudhury
FusionCharts Team

Post #8140
Posted 8/25/2008 7:10:25 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Today @ 4:44:15 AM
Posts: 18, Visits: 60
hi,
I tried running this from a web server itself.
Thanks ,
olives.
Post #8152
Posted 8/27/2008 9:13:51 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Today @ 4:44:15 AM
Posts: 18, Visits: 60
Hi,
the issue of javascript invocation got resolved .
Was missing the folowing:
To register the chart with JavaScript, we set the registerWithJS parameter to 1

var chart1 = new FusionCharts("../../FusionCharts/Column3D.swf", "chart1Id", "400", "300", "0", "1");

Realized this far too late.
Is there any way to set this parameter if we are using createChartHTML method?

Thanks,
Olives
Post #8201
« Prev Topic | Next Topic »

««12

Permissions Expand / Collapse