xmlhttprequest

jQuery sample application to look for best practices

Is there a jQuery sample application where I can look for best practices like: XMLHttpRequest retries in case of network problems XMLHttpRequest login XMLHttpRequest element loading indicator XMLHttpRequest history handling ? ...

jquery get function not working, even though the URL of the request works fine?

I'm using jquery to access a method of the Last.FM API. Here is my jquery code: $.get('http://ws.audioscrobbler.com/2.0/','method=user.getweeklytrackchart&user=rj&api_key=fb04ae401284be24afba0fbc2f4b0efb', function(data,status) { console.debug("in result method"); console.debug(data); }); Here is the console o...

Using XMLHttpRequest in a Google Chrome extension

Hello, I started making this simple google chrome extension in javascript. And in the beginning of the code I have the following: var req = new XMLHttpRequest(); req.open( "GET", "http://www.ldoceonline.com/dictionary/manga", true); req.onreadystatechange(alert(req.readyState)); The value req.readyState comes to be 1, w...

XMLHTTPRequest cross-server request for IE7 and under

I need send request from 1.abc.com/test.html to 2.abc.com/target.jsp It works fine under IE8, Firefox, Chrome and Safari. For IE8 I use XDomainRequest and for other browsers I use XMLHttpRequest. But for IE7 neither works. However, I believe there is a way for IE7 since source page and target page are under same domain abc.com even tho...

Asynchronous cross-domain GET requests

Does anyone has any solutions on accomplishing asynchronous cross-domain GET requests. I am looking to make a site that checks available names of other sites. The faster the better. I'd like it to use my server if possible, as its most likely faster than the client. Would most likely send it a huge array (300-10000) requests. Examples,...

XmlHTTPRequest and 301 redirects

Do any browsers follow cross-domain 301 redirects when processing XmlHTTPRequests (or any other method a page can get the contents of another) ...

trouble parsing XML in python

I'm trying to query a database, then convert the file-like object it returns to an XML document. Here's what I've been doing: >>> import urllib, xml.dom.minidom >>> query = "http://sbol.bhi.washington.edu/openrdf-sesame/repositories/sbol_test?query=select%20distinct%20%3Fname%20%3Ffeaturename%20where%20%7B%3Fpart%20%3Chttp%3A%2F%2Fsbol....

Google Spreadsheet API update \ edit with protocol

Hi, I'm trying to implement some basic functionality for Google Spreadsheets, using the protocol specification with requests. The reason i'm doing this because it is for Android, and gdata-java library doesn't really work and the alpha android one doesn't really cut it. I managed to implement authentication, and get for lists, and delet...

XmlHttpRequest corrupts headers in Firefox 3.6 with "Content-Type:multipart/form-data"

I'm working on "multiple ajax uloader". Works fine in bleeding edge browsers (Chrome 6, Firefox 4). But in Firefox 3.6 I must manualy create output string to be sended, cos this browser doesn't support FormData object. I followed many tutorial, especialy this. Author notify about correct setup of headers & content of body to be sended. ...

GWT RequestBuilder

How do i use GWT Request builder to pass on a String from my GWT code to a website www.xyz.com.It would be greatly helpful if i can get the code for doing this. Thanks ...

IE8 Ajax refresh not working

I'm using Ajax to refresh the contents of a div each time a subsequent request is made. It's important that the requests occur serially because the requests are being made to a billing system where each request represents a queue action that needs to complete before the next one can proceed. So I have set the xmlhttp.open boolean paramet...

duplicate ajax requests at random

I noticed that sometimes(randomly) my Mootools ajax request gets send twice. The second request succeeds right away but the first just keeps waiting indefinitely. I'm not sure if it's a bug in Mootools or something I've done. This has been verified with firebug in firefox and developer console in chrome. I couldn't verify it in IE, but ...

Javascript HTTP GET html/text returning null/empty?

I am trying to get the html of a website using this code: function catchData(req) { console.debug("i got a reply!"); var returnXML = req.responseXML; console.debug(returnXML); if (!returnXML) { console.debug("html is bad"); return; } if (speed != currentSpeed) moveToNewSpeed(speed); currentSpeed = sp...

Advice on how to modernize SQLXML 3.0 application

I'm hoping you can help me narrow my research on how to "modernize" my use of SQL XML... I recently "dusted off" a bit of something I cobbled together several years ago. It utilizes something called SQLXML 3.0 and IIS Virtual Directory Management for SQLXML 3.0 resulting in an XML template that contains a SQL EXECUTE of a stored procedu...

XMLHttpRequest.reponseXML works on one page, but not another

In creating a google chrome extension, my XMLHttpRequest.responseXML works fine on my background.html page, but not my popup.html page. Here is the code from the background.html page: var request = new XMLHttpRequest(); request.open("GET","comics.xml",false); request.send(); domXML = request.responseXML; var xmlBookmarks = domXML.getEl...

XmlHttp Request status 0, localhost issues (javascript, ajax, php) help

Hi, I am using xampp to test my codes. I am using dreamweaver live view. In live view, and return a xmlhttp.status code of 200 and echo outputs. But when I try to view it in IE or FF, the status code is 0, and no output. I read that this seems to be a problem with the URL (absolute/relative??), I tried multiple URL formats, but can't...

Cannot access data in the callback of a XMLHttpRequest in jQuery

When I run the following XmlHttpRequest $.get('../entries/find_most_recent', {name:$("#name").val()}, function(data) { console.log("data"); }); The result can be seen in this Firebug screenshot: But when I remove the quotes from console.log("data"), like so: $.get('../entries/find_most_recent', {name:$("#n...

Different Behavior of XMLHttpRequest for <input type="button"> vs. <button>

Hey guys, Consider the following code: index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <script type="text/javascript" src="script.js"></script> </head> <body> <form> <button id="getInfoButton1"></button> <in...

XHR Upload Progress is 100% from the start

Hi, I'm trying out the new XMLHTTPRequestUpload feature to upload some files to a php script, it mostly works fine, the upload starts, I get the finish response etc - but the progress doesn't seem to work. Looking that the event.loaded value - In firefox I seem to get a random value between 0 and the file size; in Chrome (where I'm mos...

How to get data from web page?

I want to get the data from this page and insert it to my mssql database. How can I read this data with asp.net c#? SehisID is a value from 1 to 81. EDIT: My code is below. for (int i = 1; i <= 81; i++) { HttpWebRequest rqst = (HttpWebRequest)WebRequest.Create("http://www.milliyet.com.tr/Secim2009/api/belediyelist.ashx?sehirid=" + ...