Entries Tagged as 'XMLHttpRequest'
Jump straight to the demo.
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: We could do similar things before, but they were with hacks like JSONP. Cross-Origin Resource Sharing lets us can achieve more and do it [...]
[Read more →]
Tags: Ajax·html5·Javascript·Microformats·Web Services·XMLHttpRequest
It's often a requirement for an Ajax app to "bust the cache", i.e. call a service and ensure its response comes direct and not from a cache. For all the talk of fancy header techniques, the easiest way to do it is by appending an arbitrary parameter, typically a random number and/or a timestamp i.e. [...]
[Read more →]
Tags: API·Digg·Links·Mashup·Web2.0·XMLHttpRequest
A pattern for your consideration, about using Ajax to help pages be RESTful.
Problem
How to personalize content and make pages cacheable and bookmarkable at the same time?
Forces
We want pages to have clean URLs that describe the main content being viewed. Doing so makes pages easily bookmarkable and send-to-friend-able, and also allows us to cache the page [...]
[Read more →]
Tags: AjaxPatterns·Caching·Cookies·Customisation·Customization·Javascript·Links·Personalisation·Personalization·REST·RESTful·Session·XMLHttpRequest
Comet Takes to IE Like a Fish Takes to Acid
Comet - or HTTP Streaming, if you will - is a little sensitive when it comes to portability, and I'll give you four guesses which major browser is causing the grief? Yeah, IE makes it difficult for two reasons: (a) IE's XMLHttpRequest component doesn't tell [...]
[Read more →]
Tags: AjaxPatterns·Comet·IE·IFrame·Javascript·Links·Push·Streaming·XMLHttpRequest
A little while back, I mentioned that some people in the patterns community have been noticing the Ajax Patterns. In particular, there have been a series of discussions about the patterns by the Software Architecture Group in the University of Illinois Computer Science Dept (home of Netscape forerunner Mosaic btw). The SAG is led by [...]
[Read more →]
Tags: AjaxPatterns·IFrame·Links·Review·SAG·Streaming·Workshop·XMLHttpRequest
Abe Fettig's done some important experimenting to arrive at a direct remoting technique, one which bypasses the need for a Cross-Domain Proxy and doesn't rely on cross-domain On-Demand Javascript. Compared to the latter technique, Abe's idea is more functional, because you get the power, expressivity, and bidirectional capability of XMLHttpRequest, as opposed to the On-Demand [...]
[Read more →]
Tags: AjaxPatterns·Javascript·Links·Remoting·Security·XMLHttpRequest
If Ajax apps are to be rich, there must be a way for the server to pass new information to the browser. For example, new stock quotes or an instant message someone else just sent you. But the browser's not a server, so the server can't initiate an HTTP connection to alert the browser. The [...]
[Read more →]
Tags: AjaxPatterns·Firefox·HTTP·IE·Javascript·JotLive·Links·Nevow·Streaming·XMLHttpRequest
Ajax Basics 2 of 3
This is the second of three podcasts on the basic Ajax patterns.
Podcast 1: Display Patterns and the DOM.
Podcast 2: Web Remoting - XMLHttpRequest, IFrame Call, HTTP Streaming.
Podcast 3: Dynamic Behaviour - Events and Timing.
Podcast 2: Web Remoting (XMLHttpRequest, IFrame, HTTP Streaming)
This 75 minute podcast covers web remoting concepts and the following [...]

Standard Podcast [75:36m]:
Play Now |
Play in Popup |
Download
[Read more →]
Tags: AjaxPatterns·HTTP·IFrame·Javascript·Links·Podcast·Remote Scripting·Remoting·Software·Streaming·Tutorial·Web·Web2.0·XMLHttpRequest
"A Mock Is Not So Stupid After All!"
Dave Crane's been talking about Mocking the Server-Side:
A Mock Object is a stand-in for the real thing. Few modern programs are really standalone, and enterprise apps require a very complex context in order to operate; containers, databases, directories, web services, etc. This can make testing difficult, [...]
[Read more →]
Tags: AjaxPatterns·Dependency Injection·Links·Mock·Mock Objects·Software·Testing·Web·Web2.0·XMLHttpRequest
Many equate Ajax to "Is it using XMLHttpRequest?", which I think is taking the acronym too literally. There's a reason why I've learned to say "Ajax" rather than "AJAX": the term is user-centric, not techno-centric, and best defined in terms of what it gives users rather than how you deliver it. And what it gives [...]
[Read more →]
Tags: AjaxPatterns·DHTML·Javascript·Links·RichClient·Web 2.0·XMLHttpRequest