xmlhttprequest

confused -- my XMLHttpRequest has readyState of 0 and status of 200

Hello, I've set a breakpoint in firebug and am examining my xhr object. Its readyState is 0, its status is 200. My understanding is that if the status is 200, the request should have at least started, and the readystate should be at least 1. Can anyone explain what's going on? I'm using jquery's $.ajax to create the xhr object, but I w...

ASP.NET HTTPHandlers and long running processes.

This is a multi-part question. I have a process that can take several minutes to complete, it is ran by a calling a HTTPHandler using a asynchronous javascript request. Question 1: How can I ensure that this request does not time out on both the server and the client? Question 2: Is it possible to emit data from the HTTPHandler while ...

Auto ajax selectors with Jquery

Hi, I'm trying to make a proof of concept website, but I want perfect degradation. As such I'm going to code the website in plain XHTML first and then add classes & ids to hook them in jQuery. One thing I want to do is eventually enable Ajax xmlhttprequest for all my links, so they display in a viewport div. I want this viewport to be a...

ie save onunload bug

I have a dynamic ajaxy app, and I save the state when the user closes the explorer window. It works ok in all browsers but in IE there is problem. After I close twice the application tab, i can't connect anymore to the server. My theory is that the connection to the server fail to complete while the tab is being closed and somehow ie7 ...

Detecting Current Internet Explorer Security Zone

Is there any method of programmatically determining the current security zone settings for Internet Explorer? I'd like to know when my site will have the XMLHttpRequest ActiveX control blocked due to IE security policy, but before the site actually tries to create it and thus causes the yellow bar to appear up the top (saying "To help p...

What do the different readystates in XMLHttpRequest mean, and how can I use them?

XMLHttpRequest has 5 readystates, and I only use 1 of them (the last one, 4). What are the others for, and what practical applications can I use them in. ...

How to capture XMLHTTP requests in a Webbrowser Control?

BeforeNavigate2 event or any other similar event don't catch XMLHTTP requests in a WebBrowser Control. Is there anyway to solve this problem? This is a .NET project. Edit: I've found this C++ application which apparently can be used to solve this problem, but porting it to managed code doesn't look possible. Maybe I should change the...

transparent batching remote calls in dwr

I want DWR to transparently batch all remote calls that are done in the course of handling the same event. The reason is that handling an event in Javascript must only take a short time and nothing else can happen during the same time. So if I am going to do many calls, I would like to DWR batch them transparenty. Is that possible? How?...

Internet Explorer 8 prototypes and XMLHttpRequest

This is partially a request for a workaround, and partially an attempt to get the word out that Internet Explorer's prototype implementation is still faulty. The following code does not work on Internet Explorer. XMLHttpRequest.prototype.old = XMLHttpRequest.prototype.open; var x = new XMLHttpRequest(); x.old("POST", "test", false); ...

Firefox setting to enable cross domain ajax request

I need to temporally allow cross domain XMLHttpRequest. Changing firefox security setting seems to be the way to go. But I've tried with this and this but they didnt work. Has anyone been able to configure this before? Thanks. ...

Which browsers have problems caching XMLHTTPRequest responses?

Do any of the currently popular browsers have particular problems caching* XMLHttpRequest responses that I need to be aware of? I'd like to be able to include XMLHttpRequest queries on every page as a method of dynamically loading content (ie JSON) or behaviour (like eval()ed Javascript) relevant to the type of page, but wanted to make ...

"not well-formed" error in Firefox when loading JSON file with XMLHttpRequest

I'm getting a "not well-formed" error in the error console of Firefox 3.0.7 when the JavaScript on my page loads a text file containing an object in JavaScript Object Notation format. If the file contains nothing but the JSON object, it produces the error. If I wrap the object in <document></document> tags it does not produce the error. ...

Speed up loading of 30-40 dynamically loaded images on each pageview.

I've got a social community with a lot of traffic. In the right column of the site's layout, we got a "online list" that prints out a 40x40px thumbnail pic of friends, people in your area etc. 30-40 images in total. Just before the right column loads, it hangs as all these images are loaded. I need a faster solution compatible down to ...

Call backing bean method through XmlHttpRequest object

Is there a way to call a backing bean method using the javascript XmlHttpRequest object or through jQuery in JSF? ...

Cross-Site XMLHttpRequest - When?

Can anyone who's following the specification more closely and has experience with how these things usually work estimate when Cross-Site XMLHttpRequest will become a Recommendation and start getting supported by the browsers? ...

Javascript AJAX function not working in IE?

I have this code: function render_message(id) { var xmlHttp; xmlHttp=new XMLHttpRequest(); xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { document.getElementById('message').innerHTML=xmlHttp.responseText; document.getElementById('message').style.display=''; } } var url="inc...

How to see request in fiddler to my site and from my site iis 5

Hi i have webserver on windows xp iis 5 sp3. I see logs but thre are only url to my site. But i need see all request informations(headers an body) For example I go to GMAIl and i click search rss feed(i add my own rss) And gmail need send request to my own webserver 13:01:05 74.125.16.68 GET /9.rss 200 (it send request and i saw log). I ...

Can I append an Ajax requestXML object to my document tree all in one go?

Greetings. Here is an XML object returned by my server in the responseXML object: <tableRoot> <table> <caption>howdy!</caption> <tr> <td>hello</td> <td>world</td> </tr> <tr> <td>another</td> <td>line</td> </tr> </table> Now I attach this fragment to my document ...

Creating a "customized" soap client in flex

Hi, I am working on a web-service that says it utilizes "SOAP" but upon closer inspection, it's very very different from the standard soap request/response structures i have seen everywhere else. I was able to talk to the service with javascript (using xmlhttprequest) and parsing the result manually. Ive tried doing it with flex, but c...

How to specify an external website for XMLHTTPRequest

When using an XMLHTTPRequest in javascript, I want to send it to an external website, rather than the one where the .js file is hosted. To send it to test.php on the current server, I would use request.open("POST", "test.php", true); but for the second arguemnt, how do I send it to another website. "example.com/test.php" looks for a f...