Questions tagged as 'xmlhttprequest'

2
answers

XHR in javascript for Python displays three times the return [closed]

Recently I deployed Python on my IIS server, and started testing some requests. First I created the javascript code, as you can see below: sendRequest = function() { var http = new XMLHttpRequest(); http.onreadystatechange...
asked by 10.03.2017 / 23:19
1
answer

Loading script asynchronously

I have an administrative system using adminLTE. In the side menu I load all my scripts asynchronously (at least it was expected). But when I load an HTML asynchronously, and inside that file I load an external javascript, it gives me the followi...
asked by 09.02.2018 / 18:58
3
answers

Send a string name via post using javascript

Good night, I'm trying to send only the name to the server, but every time I pass the string it arrives at the server as "name:", here is the way I'm trying: <!DOCTYPE html> <html> <head> <script> var bt...
asked by 14.08.2018 / 03:19
2
answers

Accent error with xmlhttp.open (or in PHP) using AngujarJs / Ionic [duplicate]

I'm having problems with accentuation in sending form data to the database, it gets the wrong accent, type = No = No. How could you solve this problem? Here are my codes: My Controller: // ENVIAR DADOS $scope.confi...
asked by 25.03.2017 / 03:25
2
answers

XMLHttpRequest wait response

I would like my XMLHttpRequest to wait for the answer. function UploadFile(campoFile, urlUpload, campoNome) { var img = $("#" + campoFile).val(); var resultado = false; if (img) { var file = document.getElementById(campoFil...
asked by 07.08.2014 / 21:30
1
answer

Return value with XMLHttpRequest

dataPacket: function(type){ aTurn.packet = new XMLHttpRequest(); aTurn.packet.open('GET', 'teste.php', true); aTurn.packet.send(); aTurn.packet.onreadystatechange = function(){ if(aTurn.packet.rea...
asked by 14.04.2018 / 00:44
1
answer

Ajax requests do not stop loading

I've been experiencing this problem for many days now, I have a page where I externally loads the link from a security camera to display the image on the main page, so that's fine, the image usually shows on my page, all XHR requests do not work...
asked by 10.11.2017 / 20:10
1
answer

ProgressBar does not update according to request XMLHttpRequest - Jquery / Asp.net

I'm building an application to upload videos and photos, and I'd like to put a ProgressBar to show the progress for the user, I found some questions to answer (#), but I'm having a bit of trouble understanding, so I could not do the Prog...
asked by 13.01.2017 / 13:54
1
answer

Node.js sending GET command [duplicate]

Hello! I'm having trouble using the GET / Test command in this case, in which it does not return any information. Node.js Code var http = require("http").createServer(servidor); var express = require('express'); var io = require("socket...
asked by 10.09.2016 / 18:28
1
answer

Modify code to avoid an XMLHttpRequest with $ .getJSON

I'm developing an application here, and I use a JSON object for popular, but when I use $.getJSON() Chrome gives the following error: XMLHttpRequest can not load file: /// C: /Users/JeanCarlos/Documents/GitHub/NetworkDiagram/Applicati...
asked by 24.02.2016 / 17:31