I'm trying to master AJAX. This is my _javascript_ code:var Data_Displayvar My_Datafunction 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 XQueryxquery version "3.0";for $Data in doc("Database_Example.xml")/xml/svg/svg_datawhere $Data = "">return $DataWhen I open my webpage, nothing appears in the textbox. Am I doing something wrong?
- References:
- XMLHTTPRequest
- From: Ted Hickox
- Prev by Date: Re: rewrite rule leads to infinite rewrite loop at apache
- Next by Date: Upgrade from 2.0.63 to 2.2.3 Apache - Initial screen prompt is no longer working
- Previous by thread: XMLHTTPRequest
- Next by thread: rewrite rule leads to infinite rewrite loop at apache
- Index(es):
[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]