Re: [users@httpd] XMLHTTPRequest update

2015-07-15 Thread Marat Khalili
Put your HTML file to the server, don't run it from file. And you are obviously not having a problem with Apache configuration here, more like it is related to your assignment. -- With Best Regards, Marat Khalili On July 15, 2015 9:38:42 PM GMT+03:00, Ted Hickox megeli...@gmail.com wrote:

Re: [users@httpd] XMLHTTPRequest update

2015-07-15 Thread Ted Hickox
Thank you for your advice. As I waited for your response, I looked up the Access-Control-Allow-Origin error. A website recommended making a CORS request. Since I've never created a CORS request, I had no idea what to do. Any suggestions? On Wed, Jul 15, 2015 at 11:59 PM, Marat Khalili

[users@httpd] XMLHTTPRequest update

2015-07-15 Thread Ted Hickox
Thank you for the information. I found one error. I'm looking into the other. My main error was that I didn't send it to the correct location. I should have sent it to: http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Data.xq I have a new error. XMLHttpRequest cannot load

Re: [users@httpd] XMLHTTPRequest

2015-07-15 Thread Marat Khalili
Hi Ted, Your send() call is asynchronous, meaning you don't receive results immediately. Register onload event listener and wait; you can easily find proper usage patterns in the net. Also, it is not productive to ask questions without looking at server logs, JavaScript console and

[users@httpd] XMLHTTPRequest

2015-07-15 Thread Ted Hickox
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 =