Sign in to follow this  
JamieR

Using Javascript Functions As Links

Recommended Posts

I'm trying to use the new style of Javascript functions with Fusion Maps v3 and am not able to reference the Javscript. When I have this:

 

<entity id='01' link="JavaScript:myJS('NA')"/> it works

 

<entity id='01' link="j-myJS-NA"/> this does not work.

 

Thanks,

 

Jame

 

Share this post


Link to post
Share on other sites

Hey Jamie,

 

Could you please try using

<entity id='01' link='j-myJS-NA' />

 

I hope this helps. :)

 

 

I'm trying to use the new style of Javascript functions with Fusion Maps v3 and am not able to reference the Javscript. When I have this:

 

<entity id='01' link="JavaScript:myJS('NA')"/> it works

 

<entity id='01' link="j-myJS-NA"/> this does not work.

 

Thanks,

 

Jame

 

Share this post


Link to post
Share on other sites

No, this did not work. sad.gif

Hey Jamie,

 

Could you please try using

<entity id='01' link='j-myJS-NA' />

 

I hope this helps. :)

 

 

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

Hi,

 

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) and also set the "RegisterWithJS" parameter to '1' in the HTML code?

 

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.fusioncharts.com/Tools/FlashPlayerSecuritySetup/HowToSetup.html

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

Still didn't work. Looks like I'll just use the long way of writing it out. Also, you should check your documentation for Global Security Settings as with Flash 10, the Settings page has changed.

 

Just to let you know also I'm using Flash 10.2 and IE9/FF6.

Hi,

 

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) and also set the "RegisterWithJS" parameter to '1' in the HTML code?

 

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

 

Hope this helps. :)

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

I am afraid, we are unable to replicate the issue, as the code is working fine from our end.

 

Please find the screenshot attached for your reference.

post-10517-0-75704700-1314350472_thumb.png

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

I am afraid, we are unable to replicate the issue, as the code is working fine from our end.

 

Please find the screenshot attached for your reference.

post-10517-0-41435200-1314350274_thumb.png

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