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. […]
Digg API - Can’t Bust the Cache
June 30th, 2007 · 2 Comments
Tags: SoftwareDev
Ajax as a Remedy for the Cacheability-Personalization Dilemma
July 13th, 2006 · 10 Comments
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 […]
Tags: SoftwareDev
Portable Comet? It’s the IFrame, Stupid!
June 6th, 2006 · 10 Comments
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 [...]
Tags: SoftwareDev
SAG Ajax Patterns Review 1 - XHR Call, IFrame Call, HTTP Streaming
March 4th, 2006 · No Comments
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 [...]
Tags: Links · SoftwareDev
Host-Proof Authentication?
November 30th, 2005 · 1 Comment
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 [...]
Tags: HumansAndTech · Links · SoftwareDev
HTTP Streaming: An Alternative to Polling the Server
November 4th, 2005 · 8 Comments
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 [...]
Tags: Links · SoftwareDev
Basics of Ajax 2 of 3: Web Remoting (XMLHttpRequest etc) (Podcast)
November 2nd, 2005 · 4 Comments
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 [...]
Tags: Links · Podcast · SoftwareDev
Mocks, Stubs, Dependency Injection, and … XMLHttpRequest
October 31st, 2005 · No Comments
"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, [...]
Tags: Links · SoftwareDev
Ajax, not “AJAX”: A User-Centered Definition
October 12th, 2005 · 6 Comments
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 [...]
Tags: HumansAndTech · Links · SoftwareDev
New Patterns: XMLHttpRequest Call and IFrame Call
October 10th, 2005 · 2 Comments
Full drafts are now online for the two big Web Remoting patterns: XMLHttpRequest Call and IFrame Call. There are also a couple of new demos to illustrate GETting and POSTing with both call types: XMLHttpRequest Example, IFrame Example. A few extracts follow, but first, let me ask you: Do you know of any public IFrame remoting [...]
Tags: HumansAndTech · Links · SoftwareDev
