CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Jay Kimble -- The Dev Theologian

Philosophizing about the .Net religion

Atlas Sample: In-Place Editing

[Sadly this post is out of date... someday I may get around to updating it for the MS Ajax Extensions...] 

As I’m preparing demos for my “Islands” presentation (whose concept was stolen from Don Box… I hope he doesn’t mind), I came across this old sample created by Nikhil K. from the Atlas team.  I decided to check it out (at this stage of the game I need a couple good demos, and I’m not above stealing them as long as I understand them… the problem is coming up with the concept).

Anyway, at the end of last year/beginning of this year, Nikhil had a series of posts here, here, and here. These posts had to do with showing you how to create an extender (this is perfect for my demo).  The posts showed how to create an in-place editor which is a form that comes alive when you click on it (in FireFox and I assume Safari) and when you tab into the fields in IE. 

This demo is really cool but it was created with the December release of Atlas (which I’m mnot sure had a Go-live license).  There were definitely some differences between the 2 client libraries that I was able to clear up quickly (NameSpaces were a little different as well as he does a direct check on IE with application object which is no longer available).

Anyway, I updated his InPlaceEditing behavior, so that it works again with the June release (I’m sure he doesn’t have the time to go back and revisit this stuff all the time).  So attached to this message (or it will be) is an update of his project.  I’m not sure I’ll be using this code in my “Islands” demo or not, yet.

[BTW, the only changes I made were to the namespaces (very minor change) and I changed the IE check to do a check for the existence of the onfocus event on the element... it works flawlessly in IE and FireFox]

Technorati Tags: , ,


Published Jul 11 2006, 10:46 AM by Jay Kimble
Filed under: , ,

Check out Devlicio.us!

This Blog

Syndication

News

CodeBetter.Com Home
Current Threat level
Terror Alert Level