stefx

adding link to javascript function

Recommended Posts

Ho to all...

 

I need to insert in the set tag a link to a javascript function...

 

I've insert in the page head tag this code:

 

 

 

 

 

script language="JavaScript" type="text/javascript" src="indicatori/funzioni/FusionCharts.js">/script>

 

script language="JavaScript">

 

function myJS(myVar){

 

window.alert(myVar);

 

}

 

/script>

 

 

 

With "<" before the tag name!!!

 

 

 

and my set tag appear like this:

 

set label="finanziamento statale" value="733" link="j-myJS-prova"

 

but don't happen anything...

 

 

 

Where is the error?

 

I attach my XML.

 

Thanks a lot.

 

Stefano

temp.xml

Edited by Guest

Share this post


Link to post
Share on other sites
saptarshi (6/23/2009)
Hello Stefano,

 

 

 

Please find attached a ZIP file which has an HTML, XML and the SWF file.

 

 

 

Hope this helps. :)

 

Hello!

 

I have the same problem.

 

But your example don't work on my pc too.

 

Tested in FF3.5, IE8, Chrome3.0. Adobe Flash Player 10.

 

Why? :)

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

 

 

We have tested the attachment in our lab and it seems to be working fine.

 

 

 

Could you please let us know whether you have made any changes to the files?

 

 

 

Waiting for your reply.:)

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