Questions tagged as 'xmlhttprequest'

1
answer

Problem when trying to use values from a JSON - Javascript

I have the following javascript code inside a function called query () that receives the index value of an input: var request = new XMLHttpRequest(); if (!request) { alert('Que pena :( a requisição não pode ser feita'); }else{ re...
asked by 17.03.2018 / 02:55
1
answer

Instagram API returns data on the network but does not return on callback

I have a strange problem and it looks exactly like this: I am consuming the instagram API and this happens the following thing: The return and display of the network tab of the devtools, but in the request callback, is done with XMLHttpRe...
asked by 30.10.2017 / 19:27
0
answers

Request on the same page with XMLHttpRequest

Good morning, I am using a script with 3 files. - > index.php (where the request is made) -> contact.php (it is the search and processing of the request) -> ajax.js (which reads and loads the contact.php file by XMLHttpRequest) Problem,...
asked by 26.06.2017 / 10:01
1
answer

Node.js receiving GET command [closed]

Hello, because of some problems loading the Twitter bootstrap libraries into my project, I made several changes to it, with the help of other users, I got to the following Node.js code: Node.js var http = require("http").createServer(servi...
asked by 11.09.2016 / 16:54
1
answer

XMLHttpRequest - response blank

I have a file on the server that, if I find the login and password informed, returns 1 or 0 if nothing is found. However, I am not able to receive this information using XMLHttpRequest . In PHP, I use echo (json_encode($))...
asked by 23.03.2016 / 22:38
0
answers

Classic ASP in XMLHTTPRquest for the same site

Hello. I'm trying to post a link for link but is giving timeout with the following code: caminho = "http://java/app/notificacao.asp" Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP") objHTTP.open "POST", caminho, false objHTTP.setRe...
asked by 11.06.2015 / 21:06
1
answer

How to get javascript file content in string form?

I'm doing a program that needs to read the source code of a javascript file. I was trying to get the javascript file via XMLHttpRequest and return this.responseText , however, its value is undefined . How do I return the contents of...
asked by 07.03.2017 / 23:32
1
answer

JSON error. My code can not read JSON

I should create a page that shows a catalog of albums provided in xml. From there I have to transform the catalog.xml into JSON and show it in a table with artist and with Title. The problem is that my code does not read the document because it...
asked by 01.11.2018 / 22:47
1
answer

Angular RequisitionJS

I'm starting with AngularJS and to study I created an application that I saw on the internet, but when I use the command "ng-include=" 'Footer.html' "inside the div it gives an error in the console. angular.js: 12578 XMLHttpRequest can not lo...
asked by 20.03.2017 / 12:59
1
answer

How to cancel an XMLHttpRequest using a button?

I am creating a file upload script that will be split into chunks according to the file size, thus creating multiple requests with different parts of the file, however I would like to put the option where the user can cancel an upload. This i...
asked by 24.05.2018 / 19:09