xmlhttprequest

Using jQuery and JSON with AJAX responseText?

Ok, I'm a bit new when it comes to jQuery and json. If I'm using json as my return type, can I still retrieve responseText from an XMLHttpRequest object? here's the code that i'm using: json response: {"clients": []} $.ajax({ type: "POST", url: "/myurl/whatever.php", data: myData, dataType: "json", ...

Parsing POST from Gnip.com via PHP

Hello! I've set up a filter at Gnip.com. In the field "POST URL" I've typed in my script URL. The URL is correct since Gnip.com really calls it. But when the script is called, I don't get any data. I've tried to parse $_GET and $_POST but both are empty arrays. getallheaders() gives me some data but no XML. How do I get the XML sent by ...

How secure is a HTTP GET when the data is URL Encoded?

If the data is Url Encoded, is it secure enough to send login credentials over HTTP GET? ...

How secure is a HTTP POST?

Is a POST secure enough to send login credentials over? Or is an SSL connection a must? ...

Handle XMLHttpRequest .NET

Hi All, Can anyone tell me how can i retrieve data on my web service written in .NET. I have posted my data through XML HTTP Request. Data has successfully posted as it returns readyState as 4. But i dont know how to access the data on the service so that i can do manipulation on that data. Thanks ...

reading in utf-8 file (javascript XMLHttpRequest) gives bad european characters

Hi there, can anyone help? I have small procedure to read in an UTF-8 file with javascript using XMLHttpRequest.. this file has european characters like miércoles sábado etc.. Notice the accents.. But when being read in .. the characters are all messed up.. I have checked the file and it is perfect.. it must be the procedure for readin...

XMLHttpRequest problem

Hi, I am writing one Web Application using XUL. In that Iam using AJAX XMLHttpRequest Object for sending request to server. When I use GPRS connection to send the request to the server from my web application the request is not going, but readyState has changed to 4 and status=0. If the request is not going out how the readyState is Cha...

How does an XMLHttpRequest response get routed to the right browser-callback?

Hello. I have made webpage that uses Ajax to update some values without reloading the page. I am using an XMLHttpRequest object to send a POST request, and I assign a callback function that gets called when the response arrives, and it works just fine. But... how in the world does the browser know that some data coming from some ip:por...

How are different TCP connections in HTTP requests identified?

Hello. From what I understand, each HTTP request uses its own TCP connection (please correct me if i'm wrong). So, let's say that there are two current connections to the same server. For example, client side javascript code triggering a couple of AJAX POST requests using the XMLHttpRequest object, one right after the other, before ge...

How does XMLHttpRequest know when to invoke its callback?

Hello. From what I understand, if client side javascript code uses the XMLHttpRequest to make a POST request, it waits for a response and when it completes it changes its readystate to ReadyState.Complete and invokes the callback function. My question is: How does it determine that the response is complete? Does it return the content...

POST response taking too long

Hello. Client side Ajax Javascript code is using XMLHttpRequest to send a POST request, but I'm getting like a 0.5 second delay in getting the response and I'm trying to find out why, since I'd like it to be faster, more like 0.2 seconds. Both endpoints are in the same intranet, the client directly connected via ethernet and the server...

how can I specify a proxy configuration using Microsoft.XMLHTTP?

I'm using Microsoft.XMLHTTP from a classic asp page to post info to another site... I'd like to be able to inspect what's going on with fiddler, and to do so I have to find a way to configure Microsoft.XMLHTTP to use a proxy... is it possible? where does Microsoft.XMLHTTP gets its configuration from? thanks a lot ...

XMLHttpRequest vs Socket vs some other approach

I read that XMLHttpRequests are best suited for content that has an update frequency of 30 seconds or more. The same article mentioned that web apps that needed a faster frequency should use a socket. I can't find the article/book that mentions this (If anybody can post links to articles that discuss this, I would appreciate it). Does...

Reliable way to sniff XMLHttpRequest (browser sniffing for AJAX requests) in ASP.NET?

I want to add an additional roadblock in my application to prevent automating it via javascript, specifically when the automated requests are being done via XMLHttpRequest from any of the popular browsers. Is there a reliable tell-tale sign of a XMLHttpRequest that I can use in ASP.NET? And I guess the other related question is, is it ...

Ajax using JS, but WITHOUT XMLhttp AND using the same socket every time?

Is it possible to communicate and update data in a page without reloading, but without using the XMLHttpRequest object, AND sharing the same connection or socket every time (so, without closing the connection for every request)? ...

Load raw image data using AJAX

I'm trying to do a bit of facebook integration with a website, and there's a particular call on the facebook api that post's a picture onto a users account. One of the parameters is the raw image data. The image is stored locally on the web server and I have a url to it. I was intending to load the image on the client using javascript un...

How do I load binary image data using Javascript and XMLHttpRequest?

I was trying to load an image client side and base64 encode the bytes returned by the server in order to pass it off to perform some processing. IE has a RequestBody property of the XMLHttpRequest object, but I can't seem to use it, and RequestText is truncated. In Firefox, RequestText is there, but seems corrupted. ...

Cross-browser implementation of "HTTP Streaming" (push) AJAX pattern

Client request web page from server. Clent then requests for extra calculations to be done; server performs series of calculations and sends partial results as soon as they are available (text format, each line contains separate full item). Client updates web page (with JavaScript and DOM) using information provided by server. This seem...

jQuery AJAX trampoline redirect

I am working on site where users get a 30 minute cookie and after it expires, any calls to the server redirect to a "session expired, click here to re-login screen." Here's the wrinkle: When the user gets to the session expired page, the URL of that page is that of the page they were trying to reach. Clicking the "Login Again" link tak...

Javascript XML Parser

Hi, We've sets of webservices and we have to make request on clientside (sending request to getting response in a jason format, and parsing XML document through - having XSLT support would be great). We need a Javascript library which will be independently responsible to all the above work and should handle browser compatibility issues...