XMLHTTPRequest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to master AJAX.  This is my _javascript_ code:

var Data_Display
var My_Data

function Setup() {

     My_Data = new XMLHttpRequest();
     My_Data.open("GET","http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Data.xq");
My_Data.send();
document.getElementById("Information").value = My_Data.responseXML;

}

This is my XML

<xml>
<svg>
<svg_data>100</svg_data>
</svg>
</xml>

This is my XQuery

xquery version "3.0";
for $Data in doc("Database_Example.xml")/xml/svg/svg_data
where $Data = "">
return $Data

When I open my webpage, nothing appears in the textbox.  Am I doing something wrong?

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux