On Wed, Jul 3, 2024 at 7:49 PM Ted Hickox <megeli...@gmail.com> wrote:
> And a hearty good evening everyone. Here is my Javascript code. > > var SVG_Data; > var Retrieved_Data; > var Attribute_List; > var Coordinate_List; > var Counter; > function Setup() { > SVG_Data = new XMLHttpRequest(); > SVG_Data.open("GET"," > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", > true); > SVG_Data.onreadystatechange = function () { > if (SVG_Data.readyState == 4) { > Retrieved_Data = SVG_Data.responseText; > Retrieved_Data = Retrieved_Data.split("*"); > Attribute_List = ""; > Coordinate_List = ""; > for (Counter = 0; Counter < 8; Counter++) { > Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; > Counter = Counter + 1; > Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} > Attribute_List = Attribute_List.split("*"); > Coordinate_List = Coordinate_List.split("*"); > Coordinate = "<ellipse id = 'My_Ellipse'"; > for (Counter = 0; Counter < 4; Counter++) { > Coordinate = Coordinate + " " + Attribute_List[Counter] + " = '" > + Coordinate_List[Counter] + "'";} > Coordinate = Coordinate + ">"; > document.getElementById("Image_Box").innerHTML = Coordinate; > } > }; > > SVG_Data.send();} > > When I run this code, I get the following error: > > uncaught typeerror. cannot read properties of undefined reading send. > > I know this has to do with SVG_Data.send(). But I don't know what I've > done wrong. Can anyone here assist me with this problem? > > > > You should ask a JavaScript mailing list / support forum instead.