Questions tagged [xmlhttprequest-states]
22 questions
4
votes
2 answers
Website doesn't recognize GET even though manual URL works
I have a custom website which checks on document.ready if there is a parameter called 'temp' in the URL-line. If so, I call a PHP-function on my server which stores the value in a database. Now the strange thing for me is that if manually type…

binaryBigInt
- 1,526
- 2
- 18
- 44
4
votes
1 answer
XmlHttp: How to get the actual statusText from an msxml.xmlhttp object?
A web-server is returning a status code and description in response to a request by an XmlHttp component. The actual status response from the server begins with:
HTTP/1.1 400 Not a valid http POST request
which i can see in though a Fiddler…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
2
votes
1 answer
XMLHttpRequest does not seem to do anything
i have been trying very unsuccessfully to download a binary file from my server using jquery-ajax, which i finally gave up. so now i am trying to use XMLHttpRequest instead. however, i cannot even get a simple example working.
strangely enough,…

edwardsmarkf
- 1,387
- 2
- 16
- 31
1
vote
2 answers
Response text comparision
i am practicing AJAX, in that i written a code to get the text from a file in server and if it is "0" print"zero" or print "one" if error print "not connected". but something went wrong dont know what only getting not connected even if it is…

vivek_jonam
- 3,237
- 8
- 32
- 44
1
vote
1 answer
Jquery ajax getting the XMLHttpRequest state
Instead of the typical "Loading..." or animated gif, I want to display a better description of what is going on. (Kind of like what some splash screens do for applications). However, glancing at the Jquery documentation there doesn't seem to be a…

Scott
- 11,046
- 10
- 51
- 83
1
vote
1 answer
XMLHttpRequest.readyState & XMLHttpRequest.status final stage comparison
I have a script that I want to see if I can fix a comparison.
this.refreshLyric = function (currentSong, currentArtist) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState…

Juan
- 195
- 9
1
vote
1 answer
a xmlhttprequest.send() crash in javascript
I was trying to learn XmlHttpRequest. I followed this W3School Tutorial.
in the file httprequest.0.js:
function myHttpRequestFunction()
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new…

Stephane Rolland
- 38,876
- 35
- 121
- 169
1
vote
1 answer
Error No 'Access-Control-Allow-Origin' header is present on the requested resource
I'm trying to make a biometric authentication on a remote machine, using XMLHttpRequest. But it is returning the following message:
XMLHttpRequest cannot load http://177.55.99.146:8080/autenticacao/autentica?arquivo=[object%20File]. No…

Fernando
- 171
- 1
- 5
1
vote
1 answer
Unable to execute php file using XMLHttpRequest
I am creating a form, that on a button, calls a javascript file to submit the contents of the form to a php file. My issue is that this works on IE, and will not work on opera, google chrome, or firefox. On analyzing the console in google chrome,…

tmaxxcar
- 309
- 2
- 15
1
vote
0 answers
orders in XmlHttpRequest's readyState change and onreadystatechange event handler execution?
I have a question on temporal behavior regarding XmlHttpRequest objects.
Is it guarantee that a readyState value update and
the corresponding onreadystatechange event handler
invocation are executed consecutively ?
I checked out the JavaScript…

user1957226
- 11
- 1
0
votes
1 answer
Detect when XMLHttpRequest has connected
I'm trying to detect when a long-running XMLHttpRequest has actually connected to the server.
Right now, when I listen for the readystatechange event, it only fires when the request is finished. My test server sends the headers and some data, and…

robbles
- 2,729
- 1
- 23
- 30
0
votes
2 answers
How to update href ID using AJAX
I have a following link in my code:
Link
When the user click this link, I will use xmlHttpRequest to update some content in a DIV on the webpage.
But at the same time, when the user click the…

ssdesign
- 2,743
- 6
- 37
- 53
0
votes
0 answers
XMLHttpRequest only reaches readystate 1 even though the response is sent
I am trying to send an httprequest to a node server I have set up in app.js. There is a specific endpoint defined in app.js called allSnippets that works as intended when I run http://localhost:3000/allSnippets but when I create a button in an html…

krishtopher00
- 1
- 1
0
votes
2 answers
XmlHttpRequest returning state 4 too soon
I'm developing a javascript code to run on an embedded device using the ANT Galio browser.
Ideally, I'd like the code to make a get request to another server. After that get request is made, the page would not allow the user to submit another get…

SLY
- 107
- 1
- 1
- 3
0
votes
1 answer
Getting HTML Source Code via XMLHttpRequest [JavaScript]
XMLHttpRequest works for first url but it doesn't work for second url.I think this function doesn't work for dynamic web pages.I also tried ajax to get html source but it didn't work too.What can I do?How can I change this code to work for second…

curious_coder
- 3
- 1