Results 1 to 5 of 5

Thread: Walterzorn

  1. #1
    Join Date
    Oct 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Walterzorn

    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 ?

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    I've copied your code and downloaded and included "wz_jsgraphics.js" and the code is working in IE7, Firefox 2.0.11 and Flock 1.0.3 without showing any error. Make sure that you've included the JS file in proper manner.

  3. #3
    Join Date
    Oct 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your reply,
    did it draw anything ?

  4. #4
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Please find the screen shot of the page as the attachment.

  5. #5
    Join Date
    Oct 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK. I've got it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •