Sign in to follow this  
DNMAN

Need Some Help About Links In Dragnode Chart

Recommended Posts

hi i'm new in Powercharts

 

i need some help about link in node

 

- i need to use javascript to show the menu that call from <div> tag look like this code style

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml">

 

<head runat="server">

 

<title></title>

 

<script type="text/javascript">

 

document.documentElement.onclick = tester;

 

function tester(ee) {

 

ee = window.event;

 

document.getElementById("MyDiv").style.left = ee.clientX;

 

document.getElementById("MyDiv").style.top = ee.clientY;

 

document.getElementById("coord-x").value = ee.clientX + "";

 

document.getElementById("coord-y").value = ee.clientY + "";

 

document.getElementById("MyDiv").style.visibility = "visible";

 

}

 

function getcoords() {

 

alert("test");

 

}

 

</script>

 

<style type="text/css">

 

 

.DivStyle

 

{

 

position:absolute;

 

left:100px;

 

top=200px;

 

z-index:999;

 

width:300px;

 

height:300px;

 

visibility:hidden;

 

border:1px solid;

 

}

 

</style>

 

</head>

 

<body>

 

<form id="form1" runat="server">

 

<div>

 

<input id="coord-x" type="text"/>

 

<input id="coord-y" type="text"/>

 

<a href="Javascript:getcoords();">Click here</a>

 

</div>

 

<div id="MyDiv" class="DivStyle">

 

<a href="generatelink()">View Information</a><br />

 

<a href="expand()">Expand This Node</a>

 

</div>

 

</form>

 

</body>

 

</html>

 

when i clicked on click here , it will show the menu that include in div tag called MyDiv at the clicked location. i have tested this code and it work properly but i can't implement it into powercharts. i need this method to finish my work

 

how can i implement this sample to my dragnode chart please help me

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