xmlhttprequest

Detecting if a browser's cache is full

We've identified that full browser caches are the cause of a problem on our extranet. It only affects a small number of our users, but we'd like to alert them to the problem and give them some guidance on how to fix the problem for themselves. We'd like to use a similar system to the one which GMail uses. When it detects that your brows...

javascript class calling XMLHttpRequest internally, then handling onreadystatechange

this thing almost works: function myClass(url) { this.source = url; this.rq = null; this.someOtherProperty = "hello"; // open connection to the ajax server this.start = function() { if (window.XMLHttpRequest) { this.rq = new XMLHttpRequest(); if (this.rq.overrideMimeType) this.rq.overrideMimeType("text/xml"...

To jQuery or not to jQuery?

I rather enjoy adding practical eye-candy to the networking community I've been developing but as things start to stack up I worry about load times. Is it truly faster to have users load (a hopefully cached) copy of jquery from Google's repositories? Does using jQuery for AJAX calls improve/reduce efficiency over basic javascript xmlHT...

saving xml file to disc using vc++

Can anyone please tell how to save an xml file from the web to the disc automatically when i give the url using vc++ ...

XMLHttpRequest error in IE, works without issue in Chrome/FF

function addRequest(req) { try { request = new XMLHttpRequest(); } catch (e) { try{ request = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try { request = new ActiveXObject("Microsoft.XMLHttp"); } catch (e) { alert("XMLHttpRequest error: " + e); } } } requ...

Using a variable name in XMLHttpRequest

Hi All, I am using jQuery and trying to load a variable in place of a named xml file. My Code: $(document).ready(function() { // bind 'myForm' and provide a simple callback function $('#theForm').ajaxForm(function(responseXML2) { var myxml = responseXML2; alert(responseXML2); disp...

Is it possible to distinguish network errors from cross-origin errors?

http://www.w3.org/TR/access-control/ Reading the CORS spec linked above, it seems to be the case that it's impossible to reliably distinguish between a generic "network error" and a cross-origin access denied error. From the spec: If there is a network error Apply the network error steps. Perform a resource sharing check. If it...

Cannot get xmlhttprequest.responseText from JQuery

Hi. I'm newbie with JQuery. I got this function function verify_at_bd(){ var u = "foo"; var p = "bar"; return $.post('auth.php', { name: u, password: p, mobile: '' }, function(result){ return result; },'json'); } If I do a c...

How to receive XMLHttpRequest with PHP?

I would like to be able to read XMLHttpRequest that is sent to a PHP page. I am using prototype's Ajax.Request function, and I am sending a simple XML structure. When trying to print the POST array on the PHP page, I don't get any output. Any help appreciated. EDIT: Below is my code <html> <head> <SCRIPT type="text/javascript" src...

Handling XMLHttpRequest to call external application

I need a simple way to use XMLHttpRequest as a way for a web client to access applications in an embedded device. I'm getting confused trying to figure out how to make something thin and light that handles the XMLHttpRequests coming to the web server and can translate those to application calls. The situation: The web client using Aj...

Infinite Refresh Loop in Firefox 3.0

I'm having a strange issue with my Javascript in Firefox 3.0.x. In Firefox 3.0.12, the page constantly reloads as soon as the list body is loaded. Neither Firefox 3.5, Safari 4 nor Chrome 5 (all on Mac) experience this issue. EDIT: I've created an isolated example rather than pulling this from my existing code. The issue was related t...

Post Method XMLHttpRequest Forces Login Dialog(IE issue)

We are running windows IIS 6 and use it's native ability to protect files with Windows Authentication as our login method. It works fine, except that when I try to post method XMLHttpRequest from IE i get the login dialog again, which causes the request to fail. The weird thing is that Mozilla and Safari work well. Is there something I...

The method Open of XMLHttpRequest

What's the difference between Sync and Async in the method open(method,url,async) in AJAX. ...

XMLHttpRequest.responseXML

Hey, what's the utility of the method XMLHttpRequest.responseXML. ...

Onreadystatechange callback behaviour for XMLHttpRequest

Hello Colleagues, If XMLHttpRequest is used with asynchronous mode, then are the onreadystatechange callbacks for 0,1,2 states called in UI thread only or in the background thread? And is it possible that this behaviour could be different in different browsers? Best Regards, Keshav ...

XMLHttpRequest works in ASP.NET development server, but not in IIS 6.0

Hi. I'm sending data to a web service through the MSXML2.XMLHTTP40 object. It's works fine in the development enviroment, but IIS is unable to send the data (long wait and then IIS close the connection). I must configure some in IIS in order to enable XMLHttpRequest ? ...

GWT-RPC vs HTTP Call - which is better??

I am evaluating if there is a performance variation between calls made using GWT-RPC and HTTP Call. My appln services are hosted as Java servlets and I am currently using HTTPProxy connections to fetch data from them. I am looking to convert them to GWT-RPC calls if that brings in performance improvement. I would like to know about pro...

How do I get the HTML status code with jQuery?

I want to check if a page returns the status code 401. Is this possible? Here is my try, but it only returns 0. $.ajax({ url: "http://my-ip/test/test.php", data: {}, complete: function(xhr, statusText){ alert(xhr.status); } }); ...

Apple Dashcode and Webservices

Hello All, I am developing my first Dashboard Widget and trying to call a webservice. But I keep on getting XMLHTTPRequest status 0. Following is the code var soapHeader = '<?xml version=\"1.0\" encoding=\"utf-8\"?>\n' +'<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"...

How to unset an ajax loading.

Hi, I have this script which loads external content: <script type="text/javascript"> var http_request = false; function makePOSTRequest(url, parameters) { http_request = false; if (window.XMLHttpRequest) { http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { http_request.overrideM...