AJAX/Atlas, Atlas/AJAX
Administrivia first: To those people searching for "hillbilly names" and stumbling across this site, my most humble apologies. Also, I've already abandoned my post-naming convention for fear that they get banned from search engines. And I have a feeling my last post contributed to the trackback spam I'm now encountering...
So I keep waffling back and forth on my preferred AJAX mechanism for Flamingo. The two choices are: roll my own or use Atlas.
There are some advantages to rolling my own. Less research into the technology. I've been AJAX-ing since the days of Microsoft.XMLDocument and I am pretty comfortable with it. I can page and sort fairly easily.
Doing it this way also lends itself to adding the app to live.com or Google's personal portal page or wherever. It seems these portals like it best when you stick with standard HTML and Javascript although I have a feeling they may block anything fancy like XMLHTTP calls to a separate web service.
I can also give the user more visual cues about what's going on. Showing little Processing... messages, clearer error messages, all the things you should do but usually don't.
You also have more control over the content that is passed to and from the server with the XMLHTTP calls but seriously, who really cares about that anyway?
On the other hand is Atlas with its all-powerful UpdatePanel. The compelling argument here? Sweet Jayzus you can build this stuff fast! No mucking around with XPath queries, no javascript coding to determine what page you're on, no futzing with sort directions. ASP.NET has all of this built-in. Ergo, the UpdatePanel has it all built-in.
And with controls like the UpdatePanelAnimation, you can't even argue about the lack of feedback to users while "stuff" is happening in the background.
So for the moment, I'm tilted into the Atlas camp again. This came last night after a couple of hours getting the paging working in the search results page. Faced with the daunting task of now having to wire it all into the selected music list, I decided to flip over to the Atlas version, which didn't have paging yet and see what would be involved in getting that working.
Total elapsed time: 30 minutes including a timeout in the middle to help my daughter sack Eleuthera. For both the search results and the selected music list. And with better paging controls than I had (thanks to what appears to be some upgrades to the paging functionality in .NET 2.0).
This framework is seriously going to rock when the documentation hits.
Finally, a word on LiveWriter. Pretty impressed so far but it has an annoying habit. When you are at the very end of your current post, which you frequently are as you write it, you need to avoid holding down the SHIFT key and selecting text using the keyboard. If you hold SHIFT and press the left or up arrows, you select text normally. But after you've selected text, try pressing the right or down arrows. Nothing happens. Even if you've released the SHIFT key.
In short, if you begin your selection by selecting the final character in your post, you can't de-select anything. My work-around is to start every post with "moo" then begin the post above it.