prcunningham Posted April 22, 2009 Report Share Posted April 22, 2009 Why doesn't this work? cfx.AllSeries.Link.OnMouseOut = "test" function test() { alert("test"); } Quote Link to comment Share on other sites More sharing options...
AndreG Posted April 22, 2009 Report Share Posted April 22, 2009 Try this: On aspx: <script lang="JavaScript" type="text/javascript"> function test(){ alert("test"); } </script> On codebehind: Chart1.AllSeries.Link.OnMouseOut = "Javascript:test()"; Quote Link to comment Share on other sites More sharing options...
AndreG Posted April 22, 2009 Report Share Posted April 22, 2009 ya... i forgot the forums don't like js... For the code behind part, remove all the "*" from the following line. Chart1.AllSeries.Link.OnMouseOut = "J*a*v*a*s*c*r*i*p*t*:test()"; Quote Link to comment Share on other sites More sharing options...
prcunningham Posted April 22, 2009 Author Report Share Posted April 22, 2009 This what I have (without the *) and still nothing happens. <script language="javascript" type="text/javascript"> test() {alert("test"); } </script>cfx.AllSeries.Link.OnClick = "java*script:test()" Quote Link to comment Share on other sites More sharing options...
AndreG Posted April 22, 2009 Report Share Posted April 22, 2009 Chart FX is using OnClick to display the ContextMenus. The way to make your code work would be to turn them off. Chart1.ContextMenus = false; Quote Link to comment Share on other sites More sharing options...
prcunningham Posted April 22, 2009 Author Report Share Posted April 22, 2009 Still nothing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.