alim27
01-08-2008, 10:35 AM
Hi ,
i'm trying to bind Walterzorn Graphic library and use it. Link to the lib : http://www.walterzorn.de/jsgraphics/jsgraphics.htm
i've tried this :
<html>
<head>
<script type="text/javascript" src="wz_jsgraphics.js"></script>
<script type="text/javascript">
<!--
function generateMindMap()
{
try
{
var jg_doc = new jsGraphics();
}
catch (e)
{
alert(e);
}
jg_doc.setColor("#00ff00"); // grün
jg_doc.fillEllipse(100, 200, 100, 180);
jg_doc.setColor("maroon");
jg_doc.drawPolyline(new Array(50, 10, 120), new Array(10, 50, 70));
jg_doc.paint(); // zeichnet in diesem Fall direkt in's document
}
//-->
</script>
</head>
<body>
<script type="text/javascript">
<!--
generateMindMap();
//-->
</script>
</body>
</html>
but it didn't work. I get back the error message (the object is not defined). Does anybody have an idea ?
i'm trying to bind Walterzorn Graphic library and use it. Link to the lib : http://www.walterzorn.de/jsgraphics/jsgraphics.htm
i've tried this :
<html>
<head>
<script type="text/javascript" src="wz_jsgraphics.js"></script>
<script type="text/javascript">
<!--
function generateMindMap()
{
try
{
var jg_doc = new jsGraphics();
}
catch (e)
{
alert(e);
}
jg_doc.setColor("#00ff00"); // grün
jg_doc.fillEllipse(100, 200, 100, 180);
jg_doc.setColor("maroon");
jg_doc.drawPolyline(new Array(50, 10, 120), new Array(10, 50, 70));
jg_doc.paint(); // zeichnet in diesem Fall direkt in's document
}
//-->
</script>
</head>
<body>
<script type="text/javascript">
<!--
generateMindMap();
//-->
</script>
</body>
</html>
but it didn't work. I get back the error message (the object is not defined). Does anybody have an idea ?