Nitobi
About Nitobi
Services
Products
Home -> Blogs -> Joel@Nitobi

Joel@Nitobi

Archive for the 'components' Category

AJAX, preserving state, and nitobi.TabStrip

December 15th, 2006

I’ve been working on the new nitobi.TabStrip, and one of the things that’s been bothering me about ajax tools and applications is the lack of state preservation. This is particularly aggravating if the back button isn’t taken care of. The new nitobi components, and TabStrip in particular are going to start supporting better preservation of state. Preserving state and session management is a tricky problem for server writers in the past, and with the introduction of AJAX where state is changed so much on the client, the problem is even trickier.

The first problem we are confronting with, is how to save the state of an ajax item, and this is where we start. Serializing TabStrip was my first task, and it opened up some interesting doors. First of all, we decided to serialize to XML, which is convenient since it is similar to HTML. Here for example, is how we deserialize from an html declaration and create the TabStrip.

var decl = new nitobi.base.Declaration();
el.jsObject = nitobi.base.Factory.getInstance().createByNode(decl.loadHtml(el));

Here is the xml that can be loaded:

Combo 3.5 can get gnarly

October 17th, 2006

We just released a point release of Combo, and by my title it may seem I’m stuck in the 80s. But all is not so. I wrote a demo that is a little more free form than the ones that we ship. You can check it out below:


Search Posts

You are currently browsing the archives for the components category.

Archives

Categories

All contents are (c) Copyright 2006, Nitobi Software Inc. All rights Reserved
Joel@Nitobi Entries (RSS) and Comments (RSS).