I have a problem with sending data using XMLHttpRequest and/or ActiveXObject("Microsoft.XMLHTTP").
I can't even get the example from w3schools to work :( - http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_post2
The problem is that there is the request to server, but it totally ignores the argument from the following code and no data arrives to server.
xmlhttp.send("fname=Henry&lname=Ford")
Is it a bug of IE11, or should it be done in another way?
I've tried using both ActiveXObject and XMLHttpRequest.
Yes, it works in my IE 11.
Did you test your code in chrome, and debug it where it causes error?
I have the same problem with IE11/Windows7, it doesn't happen all the time. It is certainly a bug in IE11. all other browser work just fine. As a workaround, I have to use "GET". You can do the same.
I recommend that you ask someone from Microsoft browser team to take a look at this.
Related
I have a piece of Javascript fully tested and working in many different environments. In this new environment I'm currently facing, this script does not work even using the same browsers.
The problem is the following: this script does and XHR Post to a certain URL (in the same domain) but in Firefox 46 (it DOES work in firefox 43 and 44) and Safari I see in the network monitor "Aborted". In IE randomly works, otherwise remains in pending. It always works in Chrome.
Trying to debug the problem I used Fiddler, but Fiddler seems to solve the problem with all the browsers.
The website is in HTTPS, but I don't think it's an HTTPS related problem because I can directly access to the resource and I can successfully do the same POST with CURL.
It also seems to be a Client Side problem because with Whireshark I can't even see the begin of the request. It seems like the browser drops the XHR POST even before starting it.
What can be the root of this problem? What changed between firefox 44 and 46 regarding the handling of HTTP POST request?
Thanks in advance.
PS: unfortunately I cannot share the code. Anyway, since it does works in different infrastractures, maybe is not needed.
UPDATE1: I just noticed that if I wait a couple of seconds (around 30) and I do "Edit and resend" from the network monitor, the request is correctly sent. If i try before that windowd time I see the "aborted" error
This seems to be a bug in Firefox 46: http://forums.mozillazine.org/viewtopic.php?f=25&t=3005573
I just upgraded to Firefox 47, and it appears to be solved now.
thank you for your answer. You were right about Firefox, in fact I upgraded to 47 too and it was solved. Anyway the problem was still present for IE and Safari. I found as a solution, valid for all browsers, enabling the One Connect feature on the Big-IP F5 load balancer. Unfortunately it wasn't something managed by me and I hadn't access to this kind of configuration to do some tests by myself
I hope this information can be useful to someone else encountering the same problem
I need your help.
I'm developing an IE extension and it must get information about every outcome HTTP request done from the IE. Is it possible?
For example, in Chrome it can be achieved with chrome.webRequest, in Firefox - with httpObserver, but I have not found a way to do it in IE extension.
Is it possible?
Thanks!
I think what you are looking for is
HttpListener
There is more to read about it on MSDN:
https://msdn.microsoft.com/en-us/library/system.net.httplistener(v=vs.110).aspx
In IE10 (I don't have any other IE's to test on), I am getting aborted for my javascript GETs from my cdn.
I read a couple of other posts about this issue and it seems that IE may not play well with CORS. But IE 10 is supposed to have that resolved.
I heard that it may be an SSL issue.
I don't even understand the log below. How can I have a GET request with the response code being 0?
I am using internet explorer 10.0.9200. I am not using JQuery to get these assets. I am just using basic script tags.
Thanks so much for your help!
I have a web app that makes cross-domain Ajax requests. The requests go through without a problem in almost every environment except for iOS devices (iPad, iPhone) running Safari 7. On those devices, the request fails. It works with the latest desktop Safari and also with mobile Safari 5; the problem is only with mobile Safari 7 (and perhaps 6; I don't have access to one of those for testing).
The app first makes a GET request to the origin site (with http protocol), which works fine. It then makes an https POST request to a different site (which is correctly configured for CORS). This is the request that fails. Nothing appears in the Safari console when the request fails and the server logs indicate that no request arrived.
One more detail that may or may not be relevant: the sequence of two requests is triggered by a single user action.
Does anyone have an idea of what's going on here?
EDIT The problem definitely appears to be related to Enyo. I created this fiddle that demonstrates the problem. If you are using Mobile Safari 7 and select enyo.Ajax as the tool for making the request, it will fail. The same request to the same URL will succeed using an XMLHttpRequest object directly. (The server-side script simply echoes the request headers. It also adds
Access-Control-Allow-Origin: *
to the response.)
Looks like this was related to a fix we made for iOS to prevent caching of non-cacheable requests. This fix was updated to only apply to iOS 6 in 2.3.0: https://github.com/enyojs/enyo/commit/73ade2a9dd68deb2f4a4db548c45e2c27104632f
Per the comments in the fix, you can use the header property to specify an object with cache-control: null, unless you're planning on upgrading to 2.3.0. :)
I ran this by the Enyo framework team. No one is exactly sure why you might be having the problem but it could be:
1) This: iOS 7 javascript XMLHttpRequest bug
2) A certificate issue with the https server.
It doesn't appear to be a framework issue, though. If the answer is something else, please let us know!
In FF4 (I'm using MacOS), when calling mozIndexedDB.open() through a local file, an exception is being thrown (IDBDatabaseException.UNKNOWN_ERR)...
The operation failed for reasons unrelated to the database itself and not covered by any other error code." code: "1
It obviously works fine in a normal http/https scenario (ie. the file is being served from a web server).
Is there any workaround or config flag that I can set in FF to be able to utilize indexed DB from a local file?
Thanks in advance...
This is a known issue in Firefox. As of today, there is no solution. Please follow https://bugzilla.mozilla.org/show_bug.cgi?id=643318 for updates on this problem.
And this bug seems to have been fixed with the latest Firefox nightly.