Sign in to follow this  
thoth

How can I put multiple JavaScript functions in a single chart link?

Recommended Posts

I have a column3d chart and I want to place two or three JavaScript functions in a single link. (each column on the chart contains a link). Is this possible and if so how can it be done?

My current link looks like this:

string link = "javascript:updateChart(%26apos;" + oRs.ReadData["STRAIGHT"].ToString() + "%26apos;)";

I want the link to contain 2 or 3 functions, something like...

string link = "javascript:updateChart(%26apos;" + oRs.ReadData["STRAIGHT"].ToString() + "%26apos;)" AND javascript:updateStats(%26apos;" + oRs.ReadData["STRAIGHT"].ToString() + "%26apos;)";

Is it possible and what would the correct syntax be?

Share this post


Link to post
Share on other sites

Could you please use  ';' separator. Please follow the code

string link = "javascript:updateChart(%26apos;" + oRs.ReadData["STRAIGHT"].ToString() + "%26apos; ) ; updateStats(%26apos;" + oRs.ReadData["STRAIGHT"].ToString() + "%26apos; ) ;";

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