Tales from the Evil Empire

Bertrand Le Roy's blog

News


Bertrand Le Roy


Add to Technorati Favorites Tales from the Evil Empire - Blogged

Blogs I read

My other stuff

Callbacks are getting momentum, not only in ASP.NET

The recent launch of the Google Suggest beta attracted a lot of attention to XmlHttp callbacks. Such features where client-side script asks the server for very focused updates to the page without reposting it entirely have been possible ever since frames and javascript exist (I've done a web-based chat application and treeview based on hidden frame posting more than 4 years ago), but the XmlHttp APIs first found in IE 5 and then in MozillaSafari and Opera (without the need to use an ActiveX, which is a great improvement) have made it a lot easier and a lot less hacky. There's even an ongoing W3C attempt at standardizing such APIs (which unfortunately adds a third syntax to the IE and Mozilla syntaxes).
So everyone is now realizing what potential it holds to make better web applications. Here's an interesting blog entry about the Google implementation.
But even this very nice Google feature has been available for ASP.NET developers under an easy to reuse form for years: check out this excellent WebControl.
This being said, to my knowledge, ASP.NET 2.0 remains the only server-side technology to natively support callbacks with ready-to-use server and client-side event-driven APIs.

Comments

SuperJason said:

I really hope ASP.NET 2.0 makes this easy AND reliable AND cross-browser compliant. That would really allow some online applications to shine.

Traditionally, I have tried to avoid this as much as possible.
# January 4, 2005 8:31 PM

Bertrand Le Roy said:

Absolutely: it's easy, reliable and cross-browser.
# January 4, 2005 8:35 PM

rick said:

It will be cross-browser? Surprising, but that just made my day.

For other non-ASP.Net environments that want this functionality, there is the excellent JSRS (Javascript Remote Scripting) library (http://www.ashleyit.com/rs/). I was using this several years ago with PHP. I'm very excited that this stuff is finally catching on.
# January 4, 2005 9:14 PM

Bertrand Le Roy said:

Not so surprising :) . Actually, most of the new features in ASP.NET 2.0 are cross-browser (Menu, TreeView with callbacks, the callback API, validators -finally-, GridView, etc.).
Interesting that you mention JSRS. There have actually been a few such APIs, including one by Microsoft, back in the classic ASP days, which was called remote scripting and surprisingly enough used a Java applet to communicate with the server.
The good thing is that the technology seems to be mature now with all browsers supporting it, and we can expect it to become mainstream this year.
# January 5, 2005 1:51 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)