xmlhttprequest

UTF-8 BOM in php response to mootools xmlhttprequest

Hi, I'm writing my first little AJAX-enabled Joomla component. I'm using mootools. I got a xmlhttprequest to contact my Joomla component, and the component returns a response - just plain text echoed by php, like echo 'Hello World!'; It's all working fine, except wireshark tells me that the response is prepended with \357\273\277\35...

RequestBuilder timeouts and browser connection limits per domain.

This is specifically about GWT's RequestBuilder, but should apply to general XHR as well. My company is having me build a near realtime chat application over HTTP. Yes, I do realize there are better ways to do chat aplications, but this is what they want. Eventually we want it working on the iPad/iPhone as well so flash is out, which rul...

Getting XML Element by name in ajax responseXML?

I'm having an issue with an AJAX script I'm fixing - an AJAX connection is being made, XML data is returned (Properly), however the data is not being shown correctly in any browser other than IE. Elements are being gotten by using xmlData.childNodes[1] - which works fine in IE, but in Opera, Firefox, Chrome, etc., different data is retur...

Changing default XMLHTTPRequest which is sending after form submit.

I have some field in form, lets say: <FORM action="http://server.com/cgi/handle" enctype="multipart/form-data" method="post"> <P> What is your name? <INPUT type="text" name="submit-name"><BR> What files are you sending? <INPUT type="file" name="files"><BR> <INPUT type="submit" value="Send"> <INPUT type="reset...

Client-side Twitter API method using XMLHttpRequest?

Does (or did) Twitter ever have a method in their API that allowed client-side HTTP requests without producing any cross-domain issues? I have a site that used the following url: http://search.twitter.com/search.json?q=from%3adaleyjem&amp;rpp=3&amp;page=1&amp;callback=? It once worked, but now it doesn't. Is there something else I shou...

What do browsers want for the Content-Type header on json ajax responses?

I am returning some json which needs to be handled by javascript as the response to an XMLHTTPRequest. If I set the response's content type to "text/plain", all browsers but Chrome will accept it and pass it to my JS with no problem. However, Chrome will wrap the response in <pre style="word-wrap: break-word; white-space: pre-wrap;"> ...

Javascript XMLHttpRequests in Loop?

Hi, I am trying to save an array of records into a mysql database but I always get the abort message in firebug except for the last save. How do I save the records using a loop for XMLHttpRequest? Here is my code: function savingContent() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp...

Cross domain XMLHttpRequest in classic ASP

My code is working fine till i migrate it to another server with firewall. After since, some part of my code is not working. Its seem to be the xmlhttp POST problem. Can someone point me to the right direction and how to determine if the firewall is the problem. My client insisted to me to use classic asp, so i cannot upgrade to .net. D...

How to get the response of XMLHttpRequest?

I'd like to know how to use XMLHttpRequest to load the content of a remote URL and have the HTML of the accessed site stored in a JS variable. Say, if I wanted to load and alert() the HTML of http://foo.com/bar.php, how would I do that? ...

Safari 5 Extension XMLHttpRequest Error: INVALID_STATE_ERR: DOM Exception 11

I am experimenting with the new Safari 5 extensions JS API and I am having an issue right from the ground up, I want to use an XMLHttpRequest to get an RSS feed from a website however upon the .send() it immediatly kicks off errors: Failed to load resource: cancelled Then looking at the XMLHttpRequest object is says in status: Error: I...

What is the easiest to transfer an object between two C# apps over the web?

I have written an application that basically gathers up a bunch of text and numerical data from the client PC and stores it as an object. Right now I'm implementing XML serialization so that the file can be saved. The issue is now, how do I get this data to the server? I have a server running IIS 7 setup but I don't quite understand the...

Securing javascript/appengine interaction

Possible Duplicates: Ajax Highscores security Is Flash/Actionscript any safer than Javascript for persistent online game? I have a google appengine high score board for a chrome extension game written in javascript. I'm currently submitting high scores with an xmlhttprequest, so anyone can write a little bit of javascript an...

AJAX XMLHttpRequest Error Flag

Hi, I made a query to an address and I got the readyState = 4, and the status = 0. After I read the documentation for the XMLHttpRequest, it says if the status = 0 and readyState = 4, then check the associated error flag. How can I see whats in this error flag to determine the cause of the status not being set to 200? Thanks. ...

WCF Restful services getting error 400 (bad request) when post xml data

I am trying to self host a WCF services and calling the services via javascript. It works when I pass the request data via Json but not xml (400 bad request). Please help. Contract: public interface iSelfHostServices { [OperationContract] [WebInvoke(Method = "POST", UriTemplate = INFOMATO.RestTemplate.hello_post2,RequestForma...

VBScript: Disable caching of response from server to HTTP GET URL request

I want to turn off the cache used when a URL call to a server is made from VBScript running within an application on a Windows machine. What function/method/object do I use to do this? When the call is made for the first time, my Linux based Apache server returns a response back from the CGI Perl script that it is running. However, subs...

XMLHttpRequest POST Data Size

Hi, Is there a size limit to a XHR POST request? I am using the POST method for saving textdata into MySQL using PHP script and the data is cut off. Firebug sends me the following message: ... Firebug request size limit has been reached by Firebug. ... This is my code for sending the data: function makeXHR(recordData) { xmlhttp...

passing element in XMLHttpRequest to one function but second one also knows, why ?

I am working on the jsp/servlet/ajax application. I use XMLHttpRequest to pass values from the jsp page to servlet, which retrieve data from the database and returns xml to the jsp. The code works but there is one thing I do not understand. Here is an JSP part <body> <label>Longitude</label><input type="text" id ="lat" value=...

jQuery Ajax Get not working

Hello, going to http://revyu.com/sparql?query=SELECT+%2A+WHERE+%7B%7D works totally fine by returning an XML file, but as soon as I use jQuery, I'm getting errors: var sparql="SELECT * WHERE {}"; var query = 'http://revyu.com/sparql?query=' + escape(sparql); $.ajax( { dataType: "xml", url : query, success : f...

Invoking WebMethods with XmlHttpRequest and Pure JavaScript

I have what should be a relatively simple task that's frankly got me stumped. I've researched it until my brain is fried, and now I'm punting, and asking you guys for help. Here's the scenario: I have an ASPX page (Q2.aspx) that is decorated with the WebService, WebServiceBinding, and ScriptService attributes. That page contains a ...

How to get jQuery/AJAX final URL

When I run $.get or .load in jQuery, the request seems to follow 302 redirects perfectly fine and gives me ultimate response, which I can use in the callback for $.get or which plugs into the this element for .load. While I obviously have the original URL since I am in control of the string that's entered as the first argument in $.get...