Hi The javascript is client side, but you need a way to call it. I'll explain the process.
1. You click a link in your browser which causes an ajax call. 2. The server processes the request. In your case it's job is to dynamically load a form into the DOM in your browser. 3. You probably issue replaceInnerHTML server side. This command in fact causes javascript to be executed in your browser. This means that kss implements a replaceInnerHTML in its javascript libraries. A command issued on the server (replaceInnerHTML) causes a javascript function (replaceInnerHTML) to be execud in your browser. 4. Your DOM now has the new form loaded, but the blue tabs for navigating between the schematas is missing. Some javascript must execute for this to happen. This javascript is normally executed thanks to a load event binding on the form, but since just dynamically inserting a form into the DOM will not trigger a load event you must somehow trigger this. 5. The correct place to trigger that load event is from the server. It will eventually just mean that a piece of javascript executes on your browser. 6. The code I supplied will fix the form tabbing, but since kss does not provide a command to do that you must wire it in. This is accomplished by writing a little javascript function (a plugin) and registering it with kss's action registry with a zcml slug. Youl'll find examples on the kss project homepage. 7. You issue your new command server side in Python code, and your form will now be "loaded". HTH Hedley > > Thank you very much Hedley! > I am not quite following you here. I am mostly looking client side pure > Javascript solution... is there a specific reason why things must be done on > the server side? _______________________________________________ Kss-devel mailing list Kss-devel@codespeak.net http://codespeak.net/mailman/listinfo/kss-devel