On Mon, Sep 15, 2008 at 1:29 PM, Hedley Roos <[EMAIL PROTECTED]>wrote:
> I should clarify. > > I do not know if there is an action which I can call server side to fire > a load event for forms. Maybe there is one - Balazs will know. > > The javascript code I supplied must be made available in a kss action > plugin. You call that plugin server side after you've done replaceHTML > to load the form into the DOM. 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? ---------------------------------------------- >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); Also, do calling ploneFormTabbing or binding load event twice for DOM node cause any problems? Cheers, Mikko > > > H > > Hedley Roos wrote: > > 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 > > > > > _______________________________________________ > Kss-devel mailing list > Kss-devel@codespeak.net > http://codespeak.net/mailman/listinfo/kss-devel > -- Mikko Ohtamaa Managing director, Red Innovation Ltd. +358 40 743 9707 www.redinnovation.com 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