xmlhttprequest

IE8 XmlHttpRequest Debugging

I am looking for some way to elegantly inspect XmlHttpRequests in IE8. I wouldn't mind a plugin or an external program. I have yet to find anything that works nearly as well as Firebug. I have already tried Julien Couvreur's bookmark debugger, but it did not seem to work with Prototype. Julien's Script ...

Accessing Client's 'localhost' from JavaScript Online

this is what I am trying to do. I have made a few .html pages with JavaScript code in it and hosted them on a Yahoo server. Now when a client with a certain browser views these web pages, the JavaScript code uses XMLHTTPRequest to make a connection at h1ttp://localhost:8080/myservlet/servlet1 to read some data. I know, I want to conne...

How to invoke nicEdit (editbox) or jquery (datepicker for text box) after a XMLHttpRequest?

Need help (or an example) as I don't seems to be able to invoke jquery datepick or nicEdit when using XMLHttpRequest. My code comes with 4 php files: Main page: main.php ++++++++++++++++++ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt; <html xmlns="http://www....

Dealing with incremental server response in AJAX (in JavaScript)

I have AJAX app which updates page based on server response. The command that AJAX server response is based on takes long time to generate full response, but it sends partial information as soon as it is calculated. This partial response / partial info is send in "burst", and time and size of each burst is unpredictable. CGI script (in...

XMLHttpRequest, basic authentication and expiring password

I use XMLHttpRequest and basic-auth to access application interface. Password is temorary and is generated by other request, so it expires after some time. But browser (Firefox least) keep using old one, failing and showing login popup. If i suppress popup by returning 403 for requests with X-Requested-By and wrong password, mozilla nev...

Are AJAX sites crawlable by search engines?

I had always assumed that AJAX-driven content was invisible to search engines. (i.e. content inserted into the DOM via XMLHTTPRequest) For example, in this site, the main content is loaded via AJAX request by the browser: http://www.trustedsource.org/query/terra.cl ...if you view this page with Javascript disabled, the main content a...

Iframe and cross domain requests

If I have a page served from foo.com which has an IFrame served from bar.com, then can a script inside the IFrame make an XMLHttpRequest to bar.com? Also say that the IFrame from bar.com requests additional pages, then in the server, the referrer of these requests would point to bar.com or foo.com? ...

JQuery, XmlHttpRequest and Status Code 0

Hi All, I've recently been doing some Cross-domain javascript using JSONP, and ASP.NET MVC. The particular Controller action will only respond to a POST request, this is by design. In IE8, I can see (via Fiddler2) that the response is correct, and returning a HTTP 200 response, along with the JSONP javascript. In Firefox, Safari and ...

If there is a set-cookie response from an xmlhttprequest, will the browser honor it and set the cookie?

I'm not trying to send cookie data with the xmlhttprequest, rather I'm trying to use the xmlhttprequest to set cookies for the session without requiring user interaction. ...

Has anyone connected an HTTP endpoint in Cast Iron to PayFlow Pro?

Is anybody out there using Cast Iron to work with PayFlow Pro? We are trying to download our daily transactions and dump them into an Oracle database. My HTTP endpoint won't connect and I'm not exactly sure why. I'm thinking it might need a client certificate, but I'm not really sure where to get that information. ...

Jquery or Basic XmlHttpRequest for MVC AJAX

Hi Getting JSON at client side via AJAX is something i am looking for in my ASP.NET MVC app. I found Jquery and basic XmlHttpRequest script for the purpose.I know the easiness with dom manipulation is one aspect for Jquery.But concerned with the file size of Jquery. But still cannot find Why i need to chose and study Jquery over the l...

What's the packet-level difference between an XMLHttpRequest and a regular HTTP request?

I'm wondering: if I were a a router, packet inspector, firewall, or other packet-sniffing device (which I'm glad I'm not) would I be able to tell the difference between a traditional HTTP request and an XMLHttpRequest? Less theoretically, is it possible that some ISP or (let's say) cell phone data provider could restrict XMLHttpRequest t...

How to call Java web service (JAX-WS) from AJAX?

Hi I am developing java web services (JAX-WS) to insert data into mysql DB and retrieve it. This web service has two methods i.e. fetchFromDB and insertIntoDB. Services seems to be running fine when I test them using netbeans IDE. Address: /CalculatorWSService WSDL: /CalculatorWSService?wsdl but when I try to access it using AJAX'...

How to monitor all XmlHttpRequest POSTs from Javascript on IE6?

I am building an ASP.NET site including third party controls (e.g. ComponentOne WebGrids) which do partial page updates. I want to monitor these updates, in order to reset a client-side timer, mirroring the server-side session timer. The aim is to provide an online-bank style dialog - "Your session is about to timeout.. click this button...

Any way to prevent Safari and Chrome to show loading animation while XHR is active?

I'm using XMLHTTPRequest binding to receive asynchronous events from the server. XHR opens a server URI and then hangs until an event comes or timeout occurs, in any case JS fires a new XHR on the same URI immediately. This works fine, but there is an annoying problem in Safari and Chrome: both keep showing "page loading" animation whil...

Why Content-Length is 0 while sending POST request with XMLHttpRequest object?

I have a virtual directory on IIS 5.1 with two aspx pages. Access to Page1 configured as "Integrated Windows Authentication" option turned on and anonymous access is disabled. Page2 available through anonymous access. On client side there is XmlHttpRequest object that can send requests that contains POST data to this pages. At first I t...

Migrating from POST forms to CSS

I've been tasked to migrate a web application to a more 'modern feeling' AJAX web 2.0 deal. The application as is currently uses PHP to pull data from the database, present the user with forms, and then update the database based on those form submissions. Frames are used to have a persistent main navigation menu, and a content area where...

XMLHttpRequest and certificate errors.

I'm using a XMLHTTPRequest object in my C++ project. I have things working fine with normal http requests and https requests on servers with valid certificates. When I attempt to make an https:// request to a server who's certificate would produce an IE "There is a problem with this website's security certificate." error if I tried to br...

JavaScript replace form submit

I developed an application that is fully based on SJAX (synchronous jax). I am sending data thru POST-SJAX instead of form submit. My idea is not to refresh the browser. The advantage of this method is: Number of HTTP request is reduced. Number of DB calls will be reduced. No need to repopulate data when the page refreshes. All I wa...

How to check in JavaScript if XMLHttpRequest object supports W3C Progress Events?

Is there any way to check within JavaScript if XMLHttpRequest object supports W3C Progress Events? I mean here if setting onload, onprogress, onabort, onerror, etc. properties to some handler function would have those function called those events, as described. Additional (bonus) question: is there a way to augment XMLHttpRequest (e.g....