I've been struggling with this as well, but I do have a workaround. Here is an example to fix the schemata tabs on dynamic form loading.
The presumably correct way which does not work ---------------------------------------------- jq('form').each(function(i,o){ var binderinfo = kukit.engine.binderInfoRegistry.getSingletonBinderInfoByName(null, 'load'); binderinfo.getBinder().continueEvent('load', o); }); Workaround for tabbing ---------------------- jq('form').each(ploneFormTabbing.initializeForm); The jquery selectors will probably be different for you. Hedley Mikko Ohtamaa wrote: > Hi, > > I have been writing custom form management stuff for medical forms > containing hundreds (sic) fields. Due to sheer size of the form, it is > splitted to several tabs รก la Plone. HTML for each tab is lazily loaded > when the tab is clicked for the first time. Forms use Archetypes KSS - > Basically I have added some hacks to formtabbing.js in Plone. > > The problem is that when HTML is loaded this way, KSS events don't get > bind and :load() event is not executed for the dynamically loaded HTML > code. I assume that KSS boosttraps itself for DOM document on load > event. The same bootstrapping code should be executed via plain > Javascript for certain dynamically created DOM nodes. > > If you can give me any pointers how I should approach the problem I'd be > glad. > > Ps. If the following links are still relevant they could be moved to the > new KSS documentation center. They contain very useful information. > > http://kssproject.org/notes/manually-triggering-actions-for-a-rule/ > > http://kssproject.org/notes/manually-calling-a-server-action/ > > -- > Mikko Ohtamaa > Every problem is solvable if you can throw enough energy drinks at it > > > ------------------------------------------------------------------------ > > _______________________________________________ > Kss-devel mailing list > Kss-devel@codespeak.net > http://codespeak.net/mailman/listinfo/kss-devel _______________________________________________ Kss-devel mailing list Kss-devel@codespeak.net http://codespeak.net/mailman/listinfo/kss-devel