I have contacted two Javascript forums and yet no one can seem to assist me.

Ted Hickox <[email protected]> Sun, 14 Jul 2024 13:54:51 -0500
Newsgroups gmane.text.xml.exist
Message-ID <CAAsp6CYM6dyTA9TfiGMG1GGX759Qd=4wAjP7p_33wkgFrA-TiQ@mail.gmail.com>
I really didn't want to contact you, but I felt like I had no other
choice.  I'm trying to use the setAttributeNS command to change a path arc
element inside my XHTML.  Once I'm successful in doing this, I will store
the arc path coordinates inside the eXist database.  Here is my XHTML code:

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
         <title>SVG_Bezier_Curve</title>
          <link rel="stylesheet" type="text/css" href="
http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Bezier_Curve.css
"/>
          <script language = "javascript" src = "
http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Bezier_Curve.js">

          </script>
    </head>
    <body>
         <input type = "text" id = "My_Text" value = "I was here."></input>
         <input type = "button" onclick = "Setup2()"/>
         <p id = "My_Paragraph"></p>
         <svg id = "My_SVG" xmlns="http://www.w3.org/2000/svg" height="500"
width="500">
         <path id = "Bezier_Curve_1"/>
         <path id="Bezier_Curve_2" d="M 300, 200 A 50, 50 0,0,1 400,200"
stroke="red" stroke-width="3" fill="none">
</path>
    </svg>
    </body>
</html>

Here is my Javascirpt code:

function Setup2() {
    var SVG_Def;
    var Bezier_Curve_Identification;
    var Attribute_Name;
    var coordinate;

    document.getElementById("My_Text").value = "I'm right here.";
    SVG_Def = document.getElementById("My_SVG");
    Bezier_Curve_Identification = SVG.getElementById('Bezier_Curve_1');
    Bezier_Curve_Identification.setAttributeNS = ("
http://www.w3.org/1999/xlink", "'d'", "'M 300, 200 A 20, 20 0,0,1
340,200'");
    Bezier_Curve_Identification.setAttributeNS = ("
http://www.w3.org/1999/xlink", "'style'", "'stroke: blue; stroke-width: 3;
fill: none;'");
              }

I hope you can find the errors so I can finish my project.

_______________________________________________
Exist-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/exist-open