Tagged Questions
0
votes
1answer
27 views
Options Request Successful but still getting Access-Control-Allow-Origin Error
I am making a DELETE request from a Backbone application and am not sure why it fails with the error shown below.
OPTIONS Header
Here is my OPTIONS header which is a 200 Success
Request:
OPTIONS ...
-4
votes
2answers
25 views
XMLHttpRequest Browser Support
Is there a reason the following snippet would not work in IE7?
var http = new XMLHttpRequest();
var url = 'http://my_site.com/';
var obj = createJsonParamsObj();
http.open("POST", url, true);
...
1
vote
1answer
63 views
Is XMLHttpRequest always available?
To use XMLHttpRequest in order to retrieve data from the server from javascript code, do I need to do conditional checks on the type of browser the code is running?
Is the following standard ...
0
votes
0answers
42 views
XMLHttpRequest breaks javascript function
I have a problem with a js exp/collapse menu that is being queried and pasted from a XMLHttpRequest.
The problem is that the js exp/collapse menu works perfectly on the same page as a menu containing ...
0
votes
0answers
18 views
XHR request for Image Fails On Second Request in Safari
I am storing image assets on S3 and requesting them using an XHR. I have a CORS policy file on S3 that looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration ...
1
vote
3answers
48 views
XMLHttpRequest that is being Aborted
I'm looking over a bit of code that deals with XHR. It looks like the first XHR.send() is being done successfully and then the subsequent one is Aborted before it gets to it's .send()
Quick in dirty:
...
1
vote
0answers
32 views
Drag and drop function I wrote and some problems
I wrote a drag and drop function to mainstream the drag and drop event for my uploading processes. However, I found a problem when it came down to uploading multiple files. I don't know how I can ...
0
votes
1answer
20 views
Syntax Error in XMLHttpRequest Function
I'm not primarily JS, so I may be making a stupid here, apologies if that is the case.
In the code:
function loadeightoheightclap("http://thomasmurphydesign.com/dubstepclap.wav") {
var request = new ...
0
votes
0answers
12 views
Write XML and view XML based on user cookie
I'm trying to have this script write XML based on a username cookie, so it knows which XML document to access.
Here it is:
{
var username = getCookie("username"); // another script defines getCookie
...
0
votes
1answer
18 views
Android - Allow XMLHttpRequest to local files on API Level < 16 possible?
For my Android Webview-App I have to do XMLHttpRequests to include html files stored in assets via jquery .load function. I found out that I can make this work by adding the following code I found ...
0
votes
0answers
24 views
Create XML file based on Input values
So, I need a script that takes All the form data in the URL and creates, or changes the existing nodes of an XML File.
I have done some research and found this:
if (window.XMLHttpRequest) {
// ...
1
vote
1answer
20 views
Adding @grant to a GM script breaks the overload of XMLHttpRequest.prototype.open?
I'm writing a Greasemonkey script where I want to overload the XMLHttpRequest.prototype.open function to hijack the Ajax calls on the page.
I'm using the following code:
// ==UserScript==
// @name ...
0
votes
0answers
23 views
Jquery - How to send XML file back to server
Firstly, I'm sorry my skills in Jquery are no good, however I've searched google for days but i can't seem to find anything to help me with this issue in passing an XML file from Jquery back to the ...
1
vote
0answers
32 views
XMLHttpRequest GET Server Status is 200 but POST Server Status is 500
I am writing a function in Javascript to post JSON data using the XMLHttpRequest POST method. The following code works fine for GET:
function httpGet(myurl, cb){
var xmlhttp = new ...
-1
votes
2answers
39 views
Storing API in local array
I'm trying to store data from an API into an array using javascript.
Tried doing it like this:
$.getJSON('http://search.twitter.com/search.json?q=Hamburg&rpp=5&lang=all', ...