XmlHttpRequest


Wednesday, August 18th, 2010

The Web as an API

Category: XmlHttpRequest

(Photo CC-A by JSConf) The ever prolific Michael Mahemoff has a nice blog post up about using Cross-Origin Resource Sharing to do cool cross site scraping, especially of microformats: Cross-Origin Resource Sharing makes it possible to do arbitrary calls from a web page to any server, if the server consents. It’s a typical HTML5 play: Read the rest…

Posted by Brad Neuberg at 5:00 am
1 Comment

+++--
3.3 rating from 3 votes

Wednesday, April 14th, 2010

XMLHttpRequest Priority Proposal

Category: XmlHttpRequest

Mike Belshe of Google Chrome and SPDY posted on a proposal for XMLHttpRequest Priority: Every performant web browser implementation today implements various heuristics for resource loading prioritization internally. The notion is simple, that loading some resources, such as images, are less performance critical than loading other resources, such as external style sheets. By implementing basic Read the rest…

Posted by Dion Almaer at 6:41 am
9 Comments

++++-
4.2 rating from 17 votes

Monday, January 11th, 2010

Using YQL as a proxy for cross-domain Ajax

Category: JavaScript, jQuery, JSON, XmlHttpRequest, Yahoo!

OK, this is nothing shockingly new, but I found it pretty useful. Using jQuery, Ajax has become more or less a one-liner: javascript < view plain text > $(document).ready(function(){   $(‘.ajaxtrigger’).click(function(){     $(‘#target’).load($(this).attr(‘href’));     return false;   }); }); This loads the document any link with a class of “ajaxtrigger” points to and Read the rest…

Posted by Chris Heilmann at 7:42 pm
8 Comments

+++--
3.6 rating from 36 votes

Wednesday, March 18th, 2009

Super fast client side searches – the Flickr way

Category: Examples, JSON, Performance, XmlHttpRequest, Yahoo!

Over at the Flickr development blog, Ross Harmes, one of those lesser sung JavaScript heroes explains in detail how Flickr creates really fast client side searches and one of the implementations of these findings is the newly released find people faster feature: The main findings of the team were that eval() is not only evil Read the rest…

Posted by Chris Heilmann at 2:38 pm
7 Comments

+++--
3.6 rating from 23 votes

Friday, August 1st, 2008

Cross domain access now, and support for the future

Category: XmlHttpRequest

Kris Zyp is really leading the charge on various missions such as JSON-* and XHR-*. This time he has a posting on a new cross-site XHR plugin repository that wraps up the myriad of techniques that are both pending in standards (XDomain, XHR++) and work arounds (window.name, magic iframe hackery). It also falls back to Read the rest…

Posted by Dion Almaer at 6:45 am
10 Comments

+++--
3.9 rating from 39 votes

Friday, June 27th, 2008

The fight for cross domain XMLHttpRequest

Category: Security, XmlHttpRequest

There is a thread going on secure cross domain requests. Microsoft came out with a paper saying that the W3C standard isn’t secure, and pushing the Microsoft XDR spec: A few proposals and implementations exist like XDomainRequest in IE8, JSONRequest and the W3C’s Web Applications Working Group’s Cross Site XMLHttpRequest (CS-XHR) draft specification, which combines Read the rest…

Posted by Dion Almaer at 9:24 am
18 Comments

++++-
4.3 rating from 23 votes

Friday, April 18th, 2008

100 Line Ajax Wrapper

Category: Browsers, IE, XmlHttpRequest

Kris Zyp gives us a glimpse at a potential future with his 100 line Ajax wrapper that tries to do the right thing cross browser for the various cross-domain models: With IE8’s new XDomainRequest feature, a new API is added for cross-site requests, instead of using the W3C cross-site access proposal. Just for fun, I Read the rest…

Posted by Dion Almaer at 6:45 am
2 Comments

+++--
3.6 rating from 17 votes

Wednesday, April 16th, 2008

Last call for W3C XMLHttpRequest comments

Category: Standards, XmlHttpRequest

The W3C has issued a last call on the XMLHttpRequest spec: The Web API Working Group has published the Last Call Working Draft of The XMLHttpRequest Object. The XMLHttpRequest Object specification defines an API that provides scripted client functionality for transferring data between a client and a server. Comments are welcome through 2 June. Learn Read the rest…

Posted by Dion Almaer at 11:01 am
2 Comments

++++-
4.2 rating from 23 votes

Tuesday, April 15th, 2008

Dojo XHR Plugins; How do you want your XHR today?

Category: Dojo, XmlHttpRequest

Neil Roberts goes into the XHR Plugins that Dojo uses and how you can extend the system to have your own. If you look at dojo.xhrGet you will see “Acceptable values are: text (default), json, json-comment-optional, json-comment-filtered, javascript, xml”, but: What you may not know is that the handleAs parameter is merely a way of Read the rest…

Posted by Dion Almaer at 6:59 am
2 Comments

++++-
4.4 rating from 23 votes

Thursday, January 10th, 2008

Cross-Site XMLHttpRequest in Firefox 3

Category: Security, XmlHttpRequest

John Resig has written up documentation of Cross-Site XMLHttpRequest that discusses the W3C Access Control working draft which Firefox 3 implements. He gives us a nice example: In a nutshell, there are two techniques that you can use to achieve your desired cross-site-request result: Specifying a special Access-Control header for your content or including an Read the rest…

Posted by Dion Almaer at 12:29 pm
11 Comments

++++-
4.1 rating from 33 votes

Wednesday, November 21st, 2007

Cross Domain XHR W3C proposal

Category: Security, XmlHttpRequest

The W3C has a new proposal titled Enabling Read Access for Web Resources which defines access control primitives to be used for cross domain XHR. You can set control via a HTTP header: HTML4 < view plain text > Access-Control: allow < *.example.org> exclude < *.public.example.org> or an XML processing instruction: xml < view plain Read the rest…

Posted by Dion Almaer at 6:56 am
6 Comments

+++--
3.4 rating from 51 votes

Friday, September 15th, 2006

Eliminating async Javascript callbacks by preprocessing

Category: Programming, Toolkit, XmlHttpRequest

According to Harry Fuecks in this post on the SitePoint PHP blog, using Ajax should be easier: The Catch 22 of AJAX is, for the sake of an easy life, most of the time we want to write “synchronous code” but asynchronous is the only way to avoid some rather nasty usability issues. This means Read the rest…

Posted by Chris Cornutt at 8:26 am
10 Comments

+++--
3.2 rating from 50 votes

Wednesday, August 9th, 2006

Cross-Domain Ajax Insecurity

Category: Ajax, Security, XmlHttpRequest

Chris Shiflett has posted his look today at cross-domain Ajax requests and some of the security implications that can come with it, especially in a world where more and more developers are beginning to think it’s okay. Since the birth of Ajax (the term, not the technology), there has been an increasing interest in various Read the rest…

Posted by Chris Cornutt at 10:03 am
4 Comments

+++--
3.7 rating from 66 votes

Friday, July 28th, 2006

IE7 XMLHttpRequest – Native or Not?

Category: IE, XmlHttpRequest

MS announced this week that IE7 will be pushed as a high-priority update, so we can expect it to be popular pretty quickly. Reader Shawn Lauriat brought our attention to the question: How native is IE7′s XMLHttpRequest? The IE team have promoted the new IE7 as including native XMLHttpRequest. This is the case, insofar as Read the rest…

Posted by Michael Mahemoff at 2:42 pm
19 Comments

++++-
4.1 rating from 51 votes

Monday, July 24th, 2006

XMLHttpRequest Quirks and PHP

Category: PHP, XmlHttpRequest

On his blog, Jacob Santos has written up two simple “gotchas” that he’s come across in his PHP/XMLHttpRequest adventures and wanted to share with other developers forging their way through the same experience. I didn’t find the AJAX frameworks much use while I was working on my current project. I’m sure they are well thought Read the rest…

Posted by Chris Cornutt at 9:34 am
4 Comments

+++--
3.6 rating from 37 votes

Thursday, July 20th, 2006

XMLHttpRequest Case-Sensitive in IE7

Category: IE, XmlHttpRequest

Sleepyhead has posted a quick note about the XMLHttpRequest support in Internet Explorer 7, some bad news – it’s case-sensitive. The native XMLHttpRequest object in IE7 is case-sensitive. This is no big surprise – however that was not the case with the XMLHttpRequest active-x object in earlier versions of IE. So if you have old Read the rest…

Posted by Chris Cornutt at 6:59 am
8 Comments

+++--
3.6 rating from 37 votes