Most voted "xmlhttprequest" questions
Xmlhttprequest is a Javascript object that was designed by Microsoft and adopted by Mozilla, Apple and Google. It is now being standardized in the W3C. If the question isn’t about Xmlhttprequest, don’t use this tag, even if you are using Xmlhttprequest in your project.
Learn more…77 questions
Sort by count of
-
8
votes1
answer594
viewsWhat is PJAX and how to detect a PJAX call in the back end?
I’ve been reading about PJAX, but it is a little confusing its operation independent of frameworks, I saw articles but all turned to YUI or plugins for jQuery, really it was not very clear its…
-
5
votes2
answers1434
viewsProblem when performing XHR on the same domain (localhost)
Explanation: I have an application running on a client’s computer, it worked normally for some time, then something happened that the system could only be accessed from outside and locally no longer…
php javascript html cross-domain xmlhttprequestasked 10 years, 3 months ago Paulo Roberto Rosa 8,979 -
4
votes1
answer2549
viewsHTTP React Native Request
an API sends a status:false the code taken status. While status==false, will be rendered the image of exclamation.png and message 'Pedido em Análise'. Case status change to true both image and…
-
4
votes1
answer117
viewsrecharge design material effects
I have a site with material design, but when I update the html of the page with XHR the new content loses the effect of javascript as I could to reload mdl? To make the change between the view, I…
-
3
votes1
answer1058
viewsCatch Return Xmlhttprequest send
Good afternoon, I am using the following code to upload images: function uploadImage($form){ $form.find('.progress-bar') .removeClass('progress-bar-success') .removeClass('progress-bar-danger'); var…
-
3
votes1
answer8441
viewsNo 'Access-Control-Allow-Origin' header is present on the requested Resource
I am trying to do a biometric authentication on a remote machine using Xmlhttprequest. But it is returning the following message: Xmlhttprequest cannot load…
-
3
votes2
answers585
viewsHow to cause an Xmlhttprequest error?
I would like to understand in which cases the readyState will be equal to 4 and the status will be different from 200 and the difference that for the event onerror: xhr.onload = function (e) { if…
-
3
votes2
answers124
viewsSimple XML Reader: I can’t convert nodes to HTML or limit the number of items
I’ve been using the Simplexmlreader to parse a gigantic XML structure, which has more than 25mb. My code works normally, but I’m having two problems: I can’t turn the Xpath in HTML. Well, I’ve…
-
2
votes1
answer163
viewsMsxml3.XMLHTTP In which case is it used?
I was reading the following topic: Ajax request with pure Javascript (no Apis) There they show the following line of code: var XMLHttpFactories = [ function () {return new XMLHttpRequest()},…
-
2
votes0
answers35
viewsASP Classic in Xmlhttprquest for the same site
Hello. I’m trying to do a post of http://java/app/form.Asp for http://java/app/notification.Asp but is giving timeout with the following code: caminho = "http://java/app/notificacao.asp" Set objHTTP…
-
2
votes1
answer1172
viewsNode.js receiving GET command
Hello, due to some problems to load the bootstrap Twitter libraries in my project, I made several changes to it, in which with help from other users, I arrived at the following Node.js code: Node.js…
-
2
votes3
answers754
viewsAccess-Control-Allow_origin error not allowed
I’m trying to access another site of my.php program, but it’s returning the message: Xmlhttprequest cannot load http://177.55.99.146:8080/Autenticacao/autentica?…
-
2
votes1
answer54
viewsXmlhttprequest - Blank Answer
I have a file on the server that, if you find the login and password informed, returns 1 or 0 if nothing is found. However, I am unable to receive this information using XMLHttpRequest. In PHP, I…
-
2
votes1
answer87
viewsInstagram API returns data on the network but does not return in callback
I’m in a strange trouble and he’s just like that: I’m consuming the instagram API and it happens this happening the following thing: The return is displayed in the network tab of devtools, but in…
-
2
votes1
answer2640
viewsRun Ajax by passing credential information in Header
I need to make an ajax call by passing in Header the following information: Content-Type:application/json Cookie:authToken=valueXPTO (This information above I got from Postman) I need to do the same…
-
2
votes0
answers258
viewsRequest on the same page with Xmlhttprequest
Good morning, I’m using a script with 3 files. ->index.php (where the request is made) ->contacto.php (is the search and processing of the request) ->ajax.js (which reads and loads the.php…
-
2
votes1
answer34
viewsProblem trying to use JSON values - Javascript
Well I have the following javascript code inside a function called query() that receives the value index of an input: var request = new XMLHttpRequest(); if (!request) { alert('Que pena :( a…
-
2
votes1
answer54
viewsXmlhttprequest cannot find run
I can’t find the error where Xmlhttprequest is, but I made an Alert to see how far it plays. JS window.onload = () => { //Constantes que são pegas do Formulário const name =…
-
1
votes0
answers42
viewsAccess-Control-Allow-Origin Xmlhttprequest Error
I am trying to do a biometric authentication on a remote machine, using XMLHttpRequest. But is returning the following message: XMLHttpRequest cannot load…
-
1
votes1
answer101
viewsRequisition Angularjs
I’m starting with Angularjs and to study I created an application 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.…
-
1
votes0
answers84
viewsHow to obtain and modify an AJAX request?
I’m creating a supplement to my own study for the Chrome, in the add-on I modify several parts of a website. But now I need to modify a request ajax, the site makes the request before the extension…
-
1
votes1
answer279
viewsHow do you create a javascript function to filter audio rss(podcast) for a project?
I have a question regarding how to create a function where I can filter the audio(.mp3),with a maximum amount of 5 audios from the feed. E titulo do áudio do feed RSS da parte do podcast da CBN:…
-
1
votes1
answer38
viewsHow to detect if the browser accepts xmlhttprequest events?
It is the following, gurizada, to make my object compatible with old browsers (if not swear me) I created a new problem. It is difficult to deviate the path according to the browser version because…
-
1
votes0
answers726
viewsHow to read xls in javascript
Hello, I’m studying a little "communication" between php and javascript, I’m very beginner and I’m a few days with a problem that I can not solve, in php I’m generating an xls with data from BD…
-
1
votes1
answer893
viewsHow to get javascript file content in string form?
I am making 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 the this.responseText, however, its value is…
-
1
votes0
answers70
viewsAngular 2 Xmlhttprequest cannot load
I am trying to make a POST request for an API and am getting this error: Xmlhttprequest cannot load http://*. Response for preflight has invalid HTTP status code 400 However, when I make a GET…
-
1
votes1
answer43
viewsIs it possible to monitor all of the page’s Responses and Headers to use as a function trigger?
I have a script that needs to be executed only after the return of a page request, because the request returns HTML content, and the function I want to execute soon after, implements that received…
-
1
votes0
answers233
viewssimplexml_load_file does not work with large XML file - Request Time Out
I’m using the simplexml_load_file to parse in an XML document, however, the file has more than 100 Mb and instead of loading only part of the nodes, what is happening is that the whole document is…
-
1
votes1
answer115
viewsHow to cancel an Xmlhttprequest using a button?
I am creating a file upload script that will be divided into Chunks according to the file size, thus creating several requests with different parts of the file, but I would like to put the option…
-
1
votes0
answers64
viewsSession with absolute path
The script below only works if I nay put the absolute path, only the relative one. It has how to make it work with absolute path? Absolute: xmlhttp.open("GET",…
-
1
votes3
answers713
viewsSend a string name via post using javascript
Good evening, I’m only trying to send name to the server, but every time I pass the string to the server as "name:", here’s the way I’m trying: <!DOCTYPE html> <html> <head>…
-
1
votes1
answer203
viewsJSON error. My code cannot read JSON
I should create a page that shows a catalog of albums provided in xml. Then I have to transform the catalog.xml into JSON and show it in a table with artist and title. The problem is that my code…
-
1
votes0
answers549
viewsdeprecation Xmlhttprequest
I would like to know how to fix my code XMLHttpRequest, he’s giving me this message [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to…
-
1
votes2
answers48
viewsxmlhttprequest native function does not overwrite by passing user token in header
I’m having a hard time getting my function to overwrite the native xmlhttprequest function so that it always passes a header containing the user token that is contained in my Localstorage Currently…
-
1
votes0
answers28
viewsWhat is the performance curve of the file that will consume an Xmlhttprequest via GET according to the date volume sent?
I wonder if there is a date volume with better performance in a Xmlhttprequest request via GET or if the performance is always directly proportional to the date amount var request = new…
-
1
votes1
answer1928
viewsJavascript - Uncaught Referenceerror: {funcao} is not defined
Hello, my friends! Good evening! I am a beginner in Javascript and I am faced with the following situation: I have a script called js widget. on my home page and this script performs a request in…
-
1
votes1
answer488
viewsOPTIONS request not reaching the server
I am making POST requests by sending and receiving JSON in my PHP API. When I’m on the localhost it works as expected, but when I’m in production I get the error below on Chromium: OPTIONS…
-
1
votes2
answers58
viewsProblem using counter variable within Xmlhttp/AJAX request
When I run the following function I always get 0 as a result. I’d like to know why and if I’m doing something wrong. The function cadastro_socios_xlsx receives an object and registers each instance…
-
0
votes2
answers723
viewsXmlhttprequest Expect 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 =…
-
0
votes1
answer530
viewsProblems with Xmlhttprequest Angularjs
I have a $http.get request in my application as seen on Angularjs ng-repeat does not return data, always returns empty However I am receiving a Warning in the browser console with the following…
-
0
votes0
answers30
viewsSend Xmlhttprequest() to a class method
Got some way of doing request.open('post', 'server.php'); call a direct php class method instead of calling a file?
-
0
votes0
answers548
viewsERP integration with wordpress by an XML
Good afternoon, you guys, I was wondering if anyone knows of any tutorial or book about integrating an ERP into wordpress by an XML. I need to make Woocommerce receive the Xml data and include them…
-
0
votes0
answers15
viewsManagerengine xml problem
Hello, <operation name="GET_REQUESTS"> <result> <status>Failed</status> <message>POST_ONLY_URL</message> <error_code>4001</error_code> </result>…
-
0
votes1
answer240
viewsHow to update an XML file without reloading the page
Good afternoon, I am creating an application that loads functions based on the information of a given XML file. However, once I save a new function via php, when I go to do a Xhttprequest in…
-
0
votes1
answer311
viewsSend form without reloading page being from different domains
I need to do a method that does not reload the page and send the data to a server on another domain. However I am having problems with the XMLHttpRequest. Does anyone know any method to do this and…
-
0
votes2
answers34
viewsproblems retrieving "Answer" from a request
I make the request normally, but when trying to recover the response of this request there is no return let rqs = new XMLHttpRequest(); rqs.open("GET",…
-
0
votes0
answers73
viewsWhy does my xmlhttp.status return zero?
I got a problem in my html, I try to catch a json, but the xmlhttp.status is always 0(zero). I researched about it, but found nothing very concrete. Below, I simplified the code to highlight the…
-
0
votes1
answer90
viewsModify code to avoid a 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 cannot load…
-
0
votes1
answer365
viewsNode.js sending GET command
Hello! I am having trouble using the GET /test command in this case, in which no information returns. Node.js code var http = require("http").createServer(servidor); var express =…
-
0
votes1
answer436
viewsProgressbar does not update according to Xmlhttprequest request - Jquery/Asp.net
I’m building an app to upload videos and photos, and I’d like to put a ProgressBar to show progress for the user, I found some questions to answer (Like this question), but I’m having a little…